net.protempore.utils
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.protempore.utils.BaseRuntimeException
                  extended by net.protempore.utils.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends BaseRuntimeException

A generic exception indicating some kind of validation failure, such as an invalid argument passed to a method.

See Also:
Serialized Form

Constructor Summary
ValidationException()
          Create a new exception that specifies no message or cause.
ValidationException(java.lang.String msg, java.lang.Object... args)
          Create a new exception with the given error message.
ValidationException(java.lang.Throwable cause)
          Create a new exception with the given cause.
ValidationException(java.lang.Throwable cause, java.lang.String msg, java.lang.Object... args)
          Create new exception with the given error message and cause.
 
Method Summary
 
Methods inherited from class net.protempore.utils.BaseRuntimeException
getCauses, getMessages, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException()
Create a new exception that specifies no message or cause.


ValidationException

public ValidationException(java.lang.String msg,
                           java.lang.Object... args)
Create a new exception with the given error message.

Parameters:
msg - A message.
args - Optional arguments for the message.

ValidationException

public ValidationException(java.lang.Throwable cause,
                           java.lang.String msg,
                           java.lang.Object... args)
Create new exception with the given error message and cause.

Parameters:
cause - The underlying cause of this exception.
msg - An error message.
args - Optional arguments for the message.

ValidationException

public ValidationException(java.lang.Throwable cause)
Create a new exception with the given cause.

Parameters:
cause - The underlying cause of this exception.