its.backbone.frame
Class ItsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byits.backbone.frame.ItsException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BadMagicException, BadTypeException, ContentsParserException, DenyFrameException, SchemaParserException

public class ItsException
extends java.lang.Exception

Base class for other ITS exceptions; also used as a general exception. Can take store a numerical value as well as a detail string. This affects the printed representation:

Author:
Rick Kint
See Also:
Serialized Form

Field Summary
protected  int value
           
protected  boolean valueSet
           
 
Constructor Summary
ItsException()
          Constructs an ItsException with no value or message
ItsException(int value)
          Constructs an ItsException with a numeric value
ItsException(java.lang.String message)
          Constructs an ItsException with a message
ItsException(java.lang.String message, int value)
          Constructs an ItsException with a numeric value and a message
 
Method Summary
 int getValue()
          Returns the numeric value
 java.lang.String toString()
          Returns a printable string in form "Exception-name: Message: Value"
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected int value

valueSet

protected boolean valueSet
Constructor Detail

ItsException

public ItsException()
Constructs an ItsException with no value or message


ItsException

public ItsException(int value)
Constructs an ItsException with a numeric value


ItsException

public ItsException(java.lang.String message)
Constructs an ItsException with a message


ItsException

public ItsException(java.lang.String message,
                    int value)
Constructs an ItsException with a numeric value and a message

Method Detail

toString

public java.lang.String toString()
Returns a printable string in form

"Exception-name: Message: Value"


getValue

public int getValue()
Returns the numeric value