lights.interfaces
Class IllegalActualValueException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--lights.interfaces.TupleSpaceRuntimeException
                          |
                          +--lights.interfaces.IllegalActualValueException

public class IllegalActualValueException
extends TupleSpaceRuntimeException

Thrown when a null value is passed as a field during the creation of a tuple.

See Also:
Serialized Form

Constructor Summary
IllegalActualValueException()
          Creates a new exception with no internal, lower-level exception.
IllegalActualValueException(java.lang.Exception internal)
          Creates an exception that wraps an internal exception.
IllegalActualValueException(java.lang.Exception internal, java.lang.String s)
          Creates an exception that wraps an internal exception.
IllegalActualValueException(java.lang.String s)
          Creates a new exception with no internal, lower-level exception.
 
Method Summary
 java.lang.Exception getInternal()
          Returns the internal exception associated with this object.
 boolean hasInternal()
          Tests whether this exception contains an internal exception.
 void printStackTrace()
          Prints this exception and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this exception and its backtrace to the specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this exception and its backtrace to the specified print writer.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalActualValueException

public IllegalActualValueException(java.lang.Exception internal)
Creates an exception that wraps an internal exception.
Parameters:
internal - the internal exception.

IllegalActualValueException

public IllegalActualValueException()
Creates a new exception with no internal, lower-level exception.

IllegalActualValueException

public IllegalActualValueException(java.lang.String s)
Creates a new exception with no internal, lower-level exception.
Parameters:
s - an explanatory message for the exception.

IllegalActualValueException

public IllegalActualValueException(java.lang.Exception internal,
                                   java.lang.String s)
Creates an exception that wraps an internal exception.
Parameters:
internal - the internal exception.
s - an explanatory message for the exception.
Method Detail

hasInternal

public boolean hasInternal()
Tests whether this exception contains an internal exception.
Overrides:
hasInternal in class TupleSpaceRuntimeException
Returns:
true if this exception contains an internal one, false otherwise.

getInternal

public java.lang.Exception getInternal()
Returns the internal exception associated with this object.
Overrides:
getInternal in class TupleSpaceRuntimeException
Returns:
the internal exception, null if there is none.

toString

public java.lang.String toString()
Overrides:
toString in class TupleSpaceRuntimeException

printStackTrace

public void printStackTrace()
Prints this exception and its backtrace to the standard error stream.
Overrides:
printStackTrace in class TupleSpaceRuntimeException

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this exception and its backtrace to the specified print stream.
Overrides:
printStackTrace in class TupleSpaceRuntimeException

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints this exception and its backtrace to the specified print writer.
Overrides:
printStackTrace in class TupleSpaceRuntimeException