marf.util
Class MARFException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--marf.util.MARFException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ClassificationException, FeatureExtractionException, InvalidSampleFormatException, MathException, NLPException, PreprocessingException, StorageException

public class MARFException
extends java.lang.Exception

Class MARFException.

This class extends Exception for MARF specifics.

$Id: MARFException.java,v 1.19 2005/08/11 00:44:50 mokhov Exp $

Since:
0.0.1
Version:
$Revision: 1.19 $
Author:
Serguei Mokhov
See Also:
Serialized Form

Field Summary
protected  java.lang.String strMessage
          Our own error message container.
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
MARFException()
          Default MARF exception.
MARFException(java.lang.Exception poException)
          Wraps Exception object around.
MARFException(java.lang.String pstrMessage)
          Generic exception.
MARFException(java.lang.String pstrMessage, java.lang.Exception poException)
          This is used for debug purposes only with some unusual Exception's.
 
Method Summary
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 java.lang.String getMessage()
          Returns string representation of the error message.
 java.lang.String toString()
          Override toString() to display our message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

strMessage

protected java.lang.String strMessage
Our own error message container. Needed as we don't have access to the parent's. Initially an empty string.

Constructor Detail

MARFException

public MARFException()
Default MARF exception. Better be overridden for normal internal message.

Since:
0.3.0.3

MARFException

public MARFException(java.lang.String pstrMessage)
Generic exception.

Parameters:
pstrMessage - Error message string

MARFException

public MARFException(java.lang.String pstrMessage,
                     java.lang.Exception poException)
This is used for debug purposes only with some unusual Exception's. It allows the originiating Exceptions stack trace to be returned.

Parameters:
pstrMessage - Error message string
poException - Exception object to dump

MARFException

public MARFException(java.lang.Exception poException)
Wraps Exception object around.

Parameters:
poException - Exception to wrap around
Since:
0.3.0.2
Method Detail

getMessage

public final java.lang.String getMessage()
Returns string representation of the error message.

Overrides:
getMessage in class java.lang.Throwable
Returns:
error string

toString

public java.lang.String toString()
Override toString() to display our message.

Overrides:
toString in class java.lang.Throwable
Returns:
string representation of this exception
Since:
0.3.0.3

getMARFSourceCodeRevision

public static java.lang.String getMARFSourceCodeRevision()
Returns source code revision information.

Returns:
revision string
Since:
0.3.0.2