com.cisco.provisioning.cpe.extensions
Class InvalidConfigException

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.InvalidConfigException
All Implemented Interfaces:
Serializable

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

This exception is thrown when an invalid configuration is detected. This can be thrown by the validation, generation, or mixing operations that are performed on a configuration context or TFTP configuration object.

See Also:
ConfigContext, TFTPConfig, TFTPFile, Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
InvalidConfigException()
          Constructor for an exception with no text message or nested exception.
InvalidConfigException(Exception nestedException)
          Constructor for an exception that contains a nested exception.
InvalidConfigException(Exception nestedException, String message)
          Constructor with a message and a nested exception.
InvalidConfigException(Exception nestedException, String message, boolean hideNestedException)
          Deprecated. Please use InvalidConfigException(Exception, String) instead.
InvalidConfigException(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

InvalidConfigException

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


InvalidConfigException

public InvalidConfigException(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.

InvalidConfigException

public InvalidConfigException(String message)
Constructor with a message

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

InvalidConfigException

public InvalidConfigException(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.

InvalidConfigException

@Deprecated
public InvalidConfigException(Exception nestedException,
                                         String message,
                                         boolean hideNestedException)
Deprecated. Please use InvalidConfigException(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.