@NonNullByDefault public enum RevisedErrorHandling extends Enum<RevisedErrorHandling>
| Enum Constant and Description |
|---|
EXTERNAL
Use RFC7606 Revised Error Handling, the peer is an external neighbor.
|
INTERNAL
Use RFC7606 Revised Error Handling, the peer is an internal neighbor.
|
NONE
Do not use RFC7606 Revised Error Handling.
|
| Modifier and Type | Method and Description |
|---|---|
static RevisedErrorHandling |
from(@Nullable PeerSpecificParserConstraint constraint)
Determine Revised Error Handling from the contents of a
PeerSpecificParserConstraint. |
BGPDocumentedException |
reportError(BGPError error,
byte[] data,
String format,
Object... args)
Report a failure to parse an attribute resulting either in treat-as-withdraw if RFC7606 is in effect, or
connection teardown if it is not.
|
BGPDocumentedException |
reportError(BGPError error,
@Nullable Exception cause,
String format,
Object... args)
Report a failure to parse an attribute resulting either in treat-as-withdraw if RFC7606 is in effect, or
connection teardown if it is not.
|
BGPDocumentedException |
reportError(BGPError error,
String format,
Object... args)
Report a failure to parse an attribute resulting either in treat-as-withdraw if RFC7606 is in effect, or
connection teardown if it is not.
|
static RevisedErrorHandling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RevisedErrorHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RevisedErrorHandling NONE
public static final RevisedErrorHandling INTERNAL
public static final RevisedErrorHandling EXTERNAL
public static RevisedErrorHandling[] values()
for (RevisedErrorHandling c : RevisedErrorHandling.values()) System.out.println(c);
public static RevisedErrorHandling valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static RevisedErrorHandling from(@Nullable PeerSpecificParserConstraint constraint)
PeerSpecificParserConstraint.constraint - Peer-specific constraintpublic BGPDocumentedException reportError(BGPError error, @Nullable Exception cause, String format, Object... args) throws BGPDocumentedException, BGPTreatAsWithdrawException
error - BGPError to report in case of a session teardowncause - Parsing failure causeformat - Message format stringargs - Message format argumentsBGPTreatAsWithdrawException - if Revised Error Handling is in effectBGPDocumentedException - if Revised Error Handling is in not effectpublic BGPDocumentedException reportError(BGPError error, String format, Object... args) throws BGPDocumentedException, BGPTreatAsWithdrawException
error - BGPError to report in case of a session teardownformat - Message format stringargs - Message format argumentsBGPTreatAsWithdrawException - if Revised Error Handling is in effectBGPDocumentedException - if Revised Error Handling is in not effectpublic BGPDocumentedException reportError(BGPError error, byte[] data, String format, Object... args) throws BGPDocumentedException, BGPTreatAsWithdrawException
error - BGPError to report in case of a session teardownformat - Message format stringargs - Message format argumentsBGPTreatAsWithdrawException - if Revised Error Handling is in effectBGPDocumentedException - if Revised Error Handling is in not effectCopyright © 2020 OpenDaylight. All rights reserved.