marf.util
Class MARFRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by marf.util.MARFRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NotImplementedException

public class MARFRuntimeException
extends java.lang.RuntimeException

This class extends RuntimeException for MARF specifics.

$Id: MARFRuntimeException.java,v 1.2 2007/12/15 17:46:07 mokhov Exp $

Since:
0.3.0.6
Version:
$Revision: 1.2 $
Author:
Serguei Mokhov
See Also:
Serialized Form

Field Summary
protected  java.lang.String strMessage
          Our own error message container.
 
Constructor Summary
MARFRuntimeException()
          Default MARF exception.
MARFRuntimeException(java.lang.Exception poException)
          Wraps Exception object around.
MARFRuntimeException(java.lang.String pstrMessage)
          Generic exception.
MARFRuntimeException(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

MARFRuntimeException

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


MARFRuntimeException

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

Parameters:
pstrMessage - Error message string

MARFRuntimeException

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

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

MARFRuntimeException

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

Parameters:
poException - Exception to wrap around
Method Detail

getMessage

public 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

getMARFSourceCodeRevision

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

Returns:
revision string


SourceForge Logo