org.inria.ns.reflex.structures
Class ExecutionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.inria.ns.reflex.structures.LocalizableException
              extended by org.inria.ns.reflex.structures.ExecutionException
All Implemented Interfaces:
Serializable, Localizable
Direct Known Subclasses:
ControlableException, UnrecoverableException

public abstract class ExecutionException
extends LocalizableException

This exception is thrown when an action can't be performed normally. This exception has 2 implementations :

ExecutionException must not be extended to other implementations. Users must extend ControlableException or UnrecoverableException.

Author:
Philippe Poulard
See Also:
Serialized Form

Constructor Summary
ExecutionException(Localizable localizable, String msg)
          Constructs a new ExecutionException with the specified detail message.
ExecutionException(Localizable localizable, String message, Throwable cause)
          Constructs a new ExecutionException with the specified detail message and cause.
ExecutionException(Localizable localizable, Throwable cause)
          Constructs a new ExecutionException with the specified cause.
ExecutionException(String message, AbstractAction action)
          Constructs a new ExecutionException with the specified detail message.
ExecutionException(String message, Throwable cause, AbstractAction action)
          Constructs a new ExecutionException with the specified detail message and cause.
ExecutionException(Throwable cause, AbstractAction action)
          Constructs a new ExecutionException with the specified cause.
 
Method Summary
 String getLocalizedMessage()
          Return a formatted message.
 
Methods inherited from class org.inria.ns.reflex.structures.LocalizableException
getLocation, isLocalizable, setLocation, wasTraced
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExecutionException

public ExecutionException(String message,
                          AbstractAction action)
Constructs a new ExecutionException with the specified detail message.

Parameters:
message - The detail message.
action - The non-null action that cause the error.

ExecutionException

public ExecutionException(String message,
                          Throwable cause,
                          AbstractAction action)
Constructs a new ExecutionException with the specified detail message and cause.

Parameters:
message - The detail message.
cause - The cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.
action - The non-null action that cause the error.

ExecutionException

public ExecutionException(Throwable cause,
                          AbstractAction action)
Constructs a new ExecutionException with the specified cause.

Parameters:
cause - The cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.
action - The non-null action that cause the error.

ExecutionException

public ExecutionException(Localizable localizable,
                          String msg)
Constructs a new ExecutionException with the specified detail message.

Parameters:
localizable - The localizable that contains the source file in fault, or null.
message - The detail message.
cause - The cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.

ExecutionException

public ExecutionException(Localizable localizable,
                          String message,
                          Throwable cause)
Constructs a new ExecutionException with the specified detail message and cause.

Parameters:
localizable - The localizable that contains the source file in fault, or null.
message - The detail message.
cause - The cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.

ExecutionException

public ExecutionException(Localizable localizable,
                          Throwable cause)
Constructs a new ExecutionException with the specified cause.

Parameters:
localizable - The localizable that contains the source file in fault, or null.
message - The detail message.
cause - The cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Return a formatted message.

Overrides:
getLocalizedMessage in class LocalizableException
Returns:
The canonical path of the element in cause, if known.
See Also:
AbstractAction#getPathElement(), Throwable.getLocalizedMessage()