@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. |
org.opendaylight.protocol.bgp.parser.BGPDocumentedException |
reportError(org.opendaylight.protocol.bgp.parser.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.
|
org.opendaylight.protocol.bgp.parser.BGPDocumentedException |
reportError(org.opendaylight.protocol.bgp.parser.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.
|
org.opendaylight.protocol.bgp.parser.BGPDocumentedException |
reportError(org.opendaylight.protocol.bgp.parser.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 org.opendaylight.protocol.bgp.parser.BGPDocumentedException reportError(org.opendaylight.protocol.bgp.parser.BGPError error,
@Nullable Exception cause,
String format,
Object... args)
throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException,
org.opendaylight.protocol.bgp.parser.BGPTreatAsWithdrawException
error - BGPError to report in case of a session teardowncause - Parsing failure causeformat - Message format stringargs - Message format argumentsorg.opendaylight.protocol.bgp.parser.BGPTreatAsWithdrawException - if Revised Error Handling is in effectorg.opendaylight.protocol.bgp.parser.BGPDocumentedException - if Revised Error Handling is in not effectpublic org.opendaylight.protocol.bgp.parser.BGPDocumentedException reportError(org.opendaylight.protocol.bgp.parser.BGPError error,
String format,
Object... args)
throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException,
org.opendaylight.protocol.bgp.parser.BGPTreatAsWithdrawException
error - BGPError to report in case of a session teardownformat - Message format stringargs - Message format argumentsorg.opendaylight.protocol.bgp.parser.BGPTreatAsWithdrawException - if Revised Error Handling is in effectorg.opendaylight.protocol.bgp.parser.BGPDocumentedException - if Revised Error Handling is in not effectpublic org.opendaylight.protocol.bgp.parser.BGPDocumentedException reportError(org.opendaylight.protocol.bgp.parser.BGPError error,
byte[] data,
String format,
Object... args)
throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException,
org.opendaylight.protocol.bgp.parser.BGPTreatAsWithdrawException
error - BGPError to report in case of a session teardownformat - Message format stringargs - Message format argumentsorg.opendaylight.protocol.bgp.parser.BGPTreatAsWithdrawException - if Revised Error Handling is in effectorg.opendaylight.protocol.bgp.parser.BGPDocumentedException - if Revised Error Handling is in not effectCopyright © 2019 OpenDaylight. All rights reserved.