pt.tumba.ngram
Class TCatNGException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by pt.tumba.ngram.TCatNGException
All Implemented Interfaces:
java.io.Serializable

public class TCatNGException
extends java.lang.Exception

Wrapper for Exceptions used in the TCatNG package.

Author:
Bruno Martins
See Also:
Serialized Form

Field Summary
(package private)  java.lang.String msg
          The Exception message
 
Constructor Summary
TCatNGException(java.lang.Exception e)
          Constructor for NGramException
TCatNGException(java.lang.String msg)
          Constructor for NGramException
 
Method Summary
 java.lang.String toString()
          Returns the String message associated with this Exception.
 
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

msg

java.lang.String msg
The Exception message

Constructor Detail

TCatNGException

public TCatNGException(java.lang.String msg)
Constructor for NGramException

Parameters:
msg - A String with the Exception message.

TCatNGException

public TCatNGException(java.lang.Exception e)
Constructor for NGramException

Parameters:
e - The Exception we wish to wrap.
Method Detail

toString

public java.lang.String toString()
Returns the String message associated with this Exception.

Overrides:
toString in class java.lang.Throwable
Returns:
A String with the message associated with this Exception.