org.inria.ns.reflex.structures
Class TimeoutException

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.TimeoutException
All Implemented Interfaces:
Serializable, Localizable

public class TimeoutException
extends ControlableException

This exception is thrown when a timeout occur.

It MUST NOT be thrown in the thread branch that was waiting for the other thread that timed out, but only in the latter, since the actions will propagate it in order to exit from that branch.

Author:
Philippe Poulard
See Also:
Serialized Form

Constructor Summary
TimeoutException(Localizable localizable, String msg)
          Constructs a new TimeoutException with the specified detail message.
TimeoutException(Localizable localizable, String message, Throwable cause)
          Constructs a new TimeoutException with the specified detail message and cause.
TimeoutException(Localizable localizable, Throwable cause)
          Constructs a new TimeoutException with the specified cause.
TimeoutException(String message, AbstractAction action)
          Constructs a new TimeoutException with the specified detail message.
TimeoutException(String message, Throwable cause, AbstractAction action)
          Constructs a new TimeoutException with the specified detail message and cause.
TimeoutException(Throwable cause, AbstractAction action)
          Constructs a new TimeoutException with the specified cause.
 
Method Summary
 
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

TimeoutException

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

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

TimeoutException

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

TimeoutException

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

TimeoutException

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

TimeoutException

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

TimeoutException

public TimeoutException(Localizable localizable,
                        Throwable cause)
Constructs a new TimeoutException 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.