net.stickycode.coercion
Class AbstractFailedToCoerceValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.stickycode.exception.PermanentException
                  extended by net.stickycode.coercion.AbstractFailedToCoerceValueException
All Implemented Interfaces:
Serializable

public abstract class AbstractFailedToCoerceValueException
extends net.stickycode.exception.PermanentException

A super type for exceptions that can be thrown during coercion. This exception is abstract as each coercion should have specific well named exceptions of its own. All coercion failures are permanent as coercions should not rely on any other systems so all failures will recur.

See Also:
Serialized Form

Constructor Summary
AbstractFailedToCoerceValueException(String message, Object... arguments)
          Construct a coercion failure message.
AbstractFailedToCoerceValueException(Throwable cause, String message, Object... arguments)
          Construct a coercion failure message where there was an exceptional cause.
 
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

AbstractFailedToCoerceValueException

public AbstractFailedToCoerceValueException(Throwable cause,
                                            String message,
                                            Object... arguments)
Construct a coercion failure message where there was an exceptional cause.

Parameters:
cause - The cause of the problem
message - The parameterized message
arguments - The arguments for parameterization, can be empty

AbstractFailedToCoerceValueException

public AbstractFailedToCoerceValueException(String message,
                                            Object... arguments)
Construct a coercion failure message.

Parameters:
message - The parameterized message
arguments - The arguments for parameterization, can be empty


Copyright © 2003-2011 RedEngine Ltd. All Rights Reserved.