public final class BGPDocumentedException extends Exception
Constructor and Description |
---|
BGPDocumentedException(BGPError error)
Used when an error occurred that is described in an RFC or a draft.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static BGPDocumentedException |
badMessageLength(String message,
int length) |
byte[] |
getData()
Returns data associated with this error.
|
BGPError |
getError()
Returns specific documented error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BGPDocumentedException(BGPError error)
error
- specific documented errorpublic BGPDocumentedException(String message, BGPError error)
message
- message bound with this exceptionerror
- specific documented errorpublic BGPDocumentedException(String message, BGPError error, Exception cause)
message
- message bound with this exceptionerror
- specific documented errorcause
- cause for the errorpublic BGPDocumentedException(String message, BGPError error, byte[] data)
message
- message bound with this exceptionerror
- specific documented errordata
- data associated with the errorpublic BGPDocumentedException(String message, BGPError error, byte[] data, Exception cause)
message
- message bound with this exceptionerror
- specific documented errordata
- data associated with the errorcause
- cause for the errorpublic BGPError getError()
public byte[] getData()
public static BGPDocumentedException badMessageLength(String message, int length)
Copyright © 2018 OpenDaylight. All rights reserved.