Class BGPDocumentedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opendaylight.protocol.bgp.parser.AbstractBGPException
-
- org.opendaylight.protocol.bgp.parser.BGPDocumentedException
-
- All Implemented Interfaces:
Serializable
public final class BGPDocumentedException extends AbstractBGPException
There are several errors documented in RFC4271 or in draft, that have specific meaning for the BGP. This exception is used, when any of those errors occurs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BGPDocumentedException(String message, BGPError error)
Used when an error occurred that is described in an RFC or a draft.BGPDocumentedException(String message, BGPError error, byte[] data)
Used when an error occurred that is described in an RFC or a draft.BGPDocumentedException(String message, BGPError error, byte[] data, Exception cause)
Used when an error occurred that is described in an RFC or a draft.BGPDocumentedException(String message, BGPError error, Exception cause)
Used when an error occurred that is described in an RFC or a draft.BGPDocumentedException(BGPError error)
Used when an error occurred that is described in an RFC or a draft.BGPDocumentedException(BGPTreatAsWithdrawException cause)
Used when an error occurred that is described in an RFC or a draft.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BGPDocumentedException
badMessageLength(String message, int length)
-
Methods inherited from class org.opendaylight.protocol.bgp.parser.AbstractBGPException
getData, getError
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BGPDocumentedException
public BGPDocumentedException(BGPError error)
Used when an error occurred that is described in an RFC or a draft.- Parameters:
error
- specific documented error
-
BGPDocumentedException
public BGPDocumentedException(String message, BGPError error)
Used when an error occurred that is described in an RFC or a draft.- Parameters:
message
- message bound with this exceptionerror
- specific documented error
-
BGPDocumentedException
public BGPDocumentedException(String message, BGPError error, Exception cause)
Used when an error occurred that is described in an RFC or a draft.- Parameters:
message
- message bound with this exceptionerror
- specific documented errorcause
- cause for the error
-
BGPDocumentedException
public BGPDocumentedException(String message, BGPError error, byte[] data)
Used when an error occurred that is described in an RFC or a draft.- Parameters:
message
- message bound with this exceptionerror
- specific documented errordata
- data associated with the error
-
BGPDocumentedException
public BGPDocumentedException(String message, BGPError error, byte[] data, Exception cause)
Used when an error occurred that is described in an RFC or a draft.- Parameters:
message
- message bound with this exceptionerror
- specific documented errordata
- data associated with the errorcause
- cause for the error
-
BGPDocumentedException
public BGPDocumentedException(BGPTreatAsWithdrawException cause)
Used when an error occurred that is described in an RFC or a draft.- Parameters:
cause
- cause for the error
-
-
Method Detail
-
badMessageLength
public static BGPDocumentedException badMessageLength(String message, int length)
-
-