springs.util
Class SpringsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--springs.util.SpringsException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AgentMovementException, AgentNotFoundException, AgentReferenceException, AlreadyExistingAgentException, AlreadyExistingContextException, CommunicationException, ContextException, ContextStartingException, ContextStoppingException, CreationException, MethodCallException, OutOfAttemptsException, PermissionException, RemovalException, RNSStartingException

public class SpringsException
extends java.lang.Exception

A Springs exception.

Author:
Sergio Ilarri Artigas
See Also:
Serialized Form

Field Summary
private static java.lang.String _MSG_COMES_NESTED_EXCEPTION
          A message to announce that what comes next is the trace of the nested exception.
private  java.lang.Throwable _nestedException
          The nested exception wrapped inside.
static boolean PRINT_NESTED_EXCEPTIONS
           
static boolean PRINT_ONLY_NESTED_EXCEPTIONS
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
SpringsException()
          Constructor.
SpringsException(java.lang.String msg)
          Constructor.
SpringsException(java.lang.String msg, java.lang.Throwable t)
          Constructor con mensaje explicativo y con excepción anterior.
SpringsException(java.lang.Throwable t)
          Constructor.
 
Method Summary
 java.lang.String getMessage()
          Gets a message for the exception.
 java.lang.Throwable getNestedException()
          Obtains the nested exception.
 void printStackTrace()
          Prints the stack trace.
 void printStackTrace(java.io.PrintWriter s)
          Prints the stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRINT_NESTED_EXCEPTIONS

public static boolean PRINT_NESTED_EXCEPTIONS

PRINT_ONLY_NESTED_EXCEPTIONS

public static boolean PRINT_ONLY_NESTED_EXCEPTIONS

_MSG_COMES_NESTED_EXCEPTION

private static final java.lang.String _MSG_COMES_NESTED_EXCEPTION
A message to announce that what comes next is the trace of the nested exception.

See Also:
String, Constant Field Values

_nestedException

private java.lang.Throwable _nestedException
The nested exception wrapped inside.

See Also:
Throwable
Constructor Detail

SpringsException

public SpringsException()
Constructor.


SpringsException

public SpringsException(java.lang.String msg)
Constructor.

Parameters:
msg - an explanation.
See Also:
String

SpringsException

public SpringsException(java.lang.Throwable t)
Constructor.

Parameters:
t - the nested exception.
See Also:
Throwable

SpringsException

public SpringsException(java.lang.String msg,
                        java.lang.Throwable t)
Constructor con mensaje explicativo y con excepción anterior.

Parameters:
msg - an explanation.
t - the nested exception.
See Also:
String, Throwable
Method Detail

getNestedException

public java.lang.Throwable getNestedException()
Obtains the nested exception.

Returns:
the nested exception.
See Also:
Throwable

getMessage

public java.lang.String getMessage()
Gets a message for the exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the explanation.
See Also:
String

printStackTrace

public void printStackTrace()
Prints the stack trace.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints the stack trace.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - where to write the trace.
See Also:
PrintWriter