com.opencloud.slee.resources.mm7
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.opencloud.slee.resources.mm7.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends java.lang.Exception

Exception thrown by all methods that send a MM7 message (request or response) when the message is not a valid MM7 message. For example, this exception is thrown when trying to send a non-error Response with an error status code.

See Also:
Serialized Form

Constructor Summary
ValidationException(java.lang.String msg)
          Construct a new ValidationException with a given message.
ValidationException(java.lang.String msg, java.lang.Throwable cause)
          Construct a new ValidationException with a given message and nested exception.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(java.lang.String msg)
Construct a new ValidationException with a given message.

Parameters:
msg - a string describing the validation error

ValidationException

public ValidationException(java.lang.String msg,
                           java.lang.Throwable cause)
Construct a new ValidationException with a given message and nested exception.

Parameters:
msg - a string describing the validation error
cause - the nested exception that caused this error