public class BgpParseException
extends java.lang.Exception
| Constructor and Description |
|---|
BgpParseException()
Default constructor to create a new exception.
|
BgpParseException(byte errorCode,
byte errorSubCode,
org.jboss.netty.buffer.ChannelBuffer data)
Constructor to create exception from error code and error subcode.
|
BgpParseException(java.lang.String message)
Constructor to create exception from message.
|
BgpParseException(java.lang.String message,
java.lang.Throwable cause)
Constructor to create exception from message and cause.
|
BgpParseException(java.lang.Throwable cause)
Constructor to create exception from cause.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.netty.buffer.ChannelBuffer |
getData()
Returns error data for this exception.
|
byte |
getErrorCode()
Returns errorcode for this exception.
|
byte |
getErrorSubCode()
Returns error Subcode for this exception.
|
public BgpParseException()
public BgpParseException(java.lang.String message,
java.lang.Throwable cause)
message - the detail of exception in stringcause - underlying cause of the errorpublic BgpParseException(java.lang.String message)
message - the detail of exception in stringpublic BgpParseException(java.lang.Throwable cause)
cause - underlying cause of the errorpublic BgpParseException(byte errorCode,
byte errorSubCode,
org.jboss.netty.buffer.ChannelBuffer data)
errorCode - error code of BGP messageerrorSubCode - error subcode of BGP messagedata - error data of BGP messagepublic byte getErrorCode()
public byte getErrorSubCode()
public org.jboss.netty.buffer.ChannelBuffer getData()