org.inria.ns.reflex.structures
Class RecoverableException

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
                  extended by org.inria.ns.reflex.structures.ControlableException
                      extended by org.inria.ns.reflex.structures.RecoverableException
All Implemented Interfaces:
Serializable, Identifiable, Localizable

public class RecoverableException
extends ControlableException
implements Identifiable

This exception is thrown when the normal execution can be recovered by a fallback action after failure.

Author:
Philippe Poulard
See Also:
Fallback, UnrecoverableException, Serialized Form

Constructor Summary
RecoverableException(Localizable localizable, String message, Throwable cause)
          Constructs a new RecoverableException with the specified detail message and which is identifiable by the classname of its cause.
RecoverableException(Localizable localizable, Throwable cause)
          Constructs a new RecoverableException which is identifiable by the classname of its cause.
RecoverableException(QName id, Localizable localizable, String msg)
          Constructs a new RecoverableException with the specified detail message.
RecoverableException(QName id, Localizable localizable, String message, Throwable cause)
          Constructs a new RecoverableException with the specified detail message and cause.
RecoverableException(QName id, Localizable localizable, Throwable cause)
          Constructs a new RecoverableException with the specified cause.
RecoverableException(QName id, String message, AbstractAction action)
          Constructs a new RecoverableException with the specified detail message.
RecoverableException(QName id, String message, Throwable cause, AbstractAction action)
          Constructs a new RecoverableException with the specified detail message and cause.
RecoverableException(QName id, Throwable cause, AbstractAction action)
          Constructs a new RecoverableException with the specified cause.
RecoverableException(String message, Throwable cause, AbstractAction action)
          Constructs a new RecoverableException with the specified detail message and which is identifiable by the classname of its cause.
RecoverableException(Throwable cause, AbstractAction action)
          Constructs a new RecoverableException which is identifiable by the classname of its cause.
 
Method Summary
 QName getId()
          Return the ID of this exception.
 
Methods inherited from class org.inria.ns.reflex.structures.ExecutionException
getLocalizedMessage
 
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

RecoverableException

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

Parameters:
id - The ID of this exception.
message - The detail message.
action - The non-null action that cause the error.

RecoverableException

public RecoverableException(String message,
                            Throwable cause,
                            AbstractAction action)
Constructs a new RecoverableException with the specified detail message and which is identifiable by the classname of its cause.

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

RecoverableException

public RecoverableException(QName id,
                            String message,
                            Throwable cause,
                            AbstractAction action)
Constructs a new RecoverableException 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.

RecoverableException

public RecoverableException(Throwable cause,
                            AbstractAction action)
Constructs a new RecoverableException which is identifiable by the classname of its cause. cause.

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

RecoverableException

public RecoverableException(QName id,
                            Throwable cause,
                            AbstractAction action)
Constructs a new RecoverableException 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.

RecoverableException

public RecoverableException(QName id,
                            Localizable localizable,
                            String msg)
Constructs a new RecoverableException 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.

RecoverableException

public RecoverableException(Localizable localizable,
                            String message,
                            Throwable cause)
Constructs a new RecoverableException with the specified detail message and which is identifiable by the classname of its cause.

Parameters:
localizable - The localizable that contains the source file in fault, or null.
message - The detail message.
cause - The non-null cause.

RecoverableException

public RecoverableException(QName id,
                            Localizable localizable,
                            String message,
                            Throwable cause)
Constructs a new RecoverableException 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.

RecoverableException

public RecoverableException(Localizable localizable,
                            Throwable cause)
Constructs a new RecoverableException which is identifiable by the classname of its cause.

Parameters:
localizable - The localizable that contains the source file in fault, or null.
message - The detail message.
cause - The non-null cause.

RecoverableException

public RecoverableException(QName id,
                            Localizable localizable,
                            Throwable cause)
Constructs a new RecoverableException 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

getId

public QName getId()
Return the ID of this exception.

Specified by:
getId in interface Identifiable
Returns:
The ID of this exception.
See Also:
Identifiable.getId()