ittp
Class ittpException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byittp.ittpException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ITTPScan.TokenException, TokenStream.ParseException

public class ittpException
extends java.lang.RuntimeException

This class return a error's message that correspods to the response_code. It is instantiated when an error is generated.

Author:
Frederic Bidon and Mathieu Texier
See Also:
Serialized Form

Field Summary
(package private)  int response_code
          Response code to be return
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
ittpException(java.lang.String msg, int response_code)
          Constructor of the class.
 
Method Summary
 int getResponseCode()
          Accessors for the response_code.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

response_code

int response_code
Response code to be return

Constructor Detail

ittpException

public ittpException(java.lang.String msg,
                     int response_code)
Constructor of the class.

Parameters:
msg - String that containing the message of the error.
response_code - int containing the code corresponding to the error.
Method Detail

getResponseCode

public int getResponseCode()
Accessors for the response_code.

Returns:
the response_code of the error