com.cisco.provisioning.cpe.extensions
Class InvalidTLVException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.cisco.provisioning.cpe.BaseException
              extended by com.cisco.provisioning.cpe.extensions.InvalidTLVException
All Implemented Interfaces:
Serializable

public class InvalidTLVException
extends com.cisco.provisioning.cpe.BaseException

The InvalidTLVException exception is thrown when a TLV object can not be created, either because the value has been specified as a text string that could not be parsed, or the type or length field values are out of range.

See Also:
TLV, OptionValue, Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
InvalidTLVException()
          Constructor for an exception with no text message or nested exception.
InvalidTLVException(Exception nestedException)
          Constructor for an exception that contains a nested exception.
InvalidTLVException(Exception nestedException, String message)
          Constructor with a message and a nested exception.
InvalidTLVException(Exception nestedException, String message, boolean hideNestedException)
          Deprecated. Please use InvalidTLVException(Exception, String) instead.
InvalidTLVException(String message)
          Constructor with a message
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

InvalidTLVException

public InvalidTLVException()
Constructor for an exception with no text message or nested exception.


InvalidTLVException

public InvalidTLVException(Exception nestedException)
Constructor for an exception that contains a nested exception.

The message for this exception will be the result of toString() of the nestedException (as long as its not null).

Parameters:
nestedException - The exception this exception is explaining in more detail.

InvalidTLVException

public InvalidTLVException(String message)
Constructor with a message

Parameters:
message - the message string to associate with this exception

InvalidTLVException

public InvalidTLVException(Exception nestedException,
                           String message)
Constructor with a message and a nested exception.

Parameters:
nestedException - The exception this exception is explaining in more detail.
message - The display message for the explanation message.

InvalidTLVException

@Deprecated
public InvalidTLVException(Exception nestedException,
                                      String message,
                                      boolean hideNestedException)
Deprecated. Please use InvalidTLVException(Exception, String) instead.

Constructor for an exception that contains a text messsage and a nested exception.

Parameters:
nestedException - the exception this exception is explaining in more detail
message - the message to associate with this exception.
hideNestedException - this field is ignored.