com.codestreet.selector.parser
Class BaseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.codestreet.selector.parser.BaseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BusinessException, SystemException

public class BaseException
extends java.lang.Exception

Base class for exceptions. Allows exception chaining.

Author:
Jawaid Hakim.
See Also:
Serialized Form

Constructor Summary
BaseException()
          Ctor.
BaseException(java.lang.String message)
          Ctor.
BaseException(java.lang.String msg, java.lang.Object[] inserts, java.lang.Throwable root)
          Create a new RBaseException instance.
BaseException(java.lang.String msg, java.lang.Object insert, java.lang.Throwable root)
          Create a new RBaseException instance.
BaseException(java.lang.String msg, java.lang.Throwable root)
          Ctor.
BaseException(java.lang.Throwable root)
          Ctor.
 
Method Summary
static java.lang.String generateStackTraceString(java.lang.Throwable t)
           
 java.lang.String getMessage()
          Override Exceptin.getMessage to include information of the root causeo of the exception.
 java.lang.Throwable getRootCause()
          Get root cause of exception.
 java.lang.String getStackTraceString()
          Return the stack trace including root cause exceptions.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream inPrintStream)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseException

public BaseException()
Ctor.


BaseException

public BaseException(java.lang.String message)
Ctor.

Parameters:
message - a String value

BaseException

public BaseException(java.lang.Throwable root)
Ctor.

Parameters:
root - Root cause of exception. Cannot be null.

BaseException

public BaseException(java.lang.String msg,
                     java.lang.Throwable root)
Ctor.

Parameters:
root - Root cause of exception. Cannot be null.

BaseException

public BaseException(java.lang.String msg,
                     java.lang.Object[] inserts,
                     java.lang.Throwable root)
Create a new RBaseException instance. Allows for an association of an originating exception.

Parameters:
msg - Message to describe the exception
inserts - an Object[] value
root - Root cause of exception. Cannot be null.

BaseException

public BaseException(java.lang.String msg,
                     java.lang.Object insert,
                     java.lang.Throwable root)
Create a new RBaseException instance. Allows for an association of an originating exception.

Parameters:
msg - Message to describe the exception
insert - an Object value
root - Root cause of exception. Cannot be null.
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Get root cause of exception.

Returns:
Root exception.

getStackTraceString

public java.lang.String getStackTraceString()
Return the stack trace including root cause exceptions.

Returns:
The stack trace of the exception.

getMessage

public java.lang.String getMessage()
Override Exceptin.getMessage to include information of the root causeo of the exception.

Returns:
The exception msg, including root cause messages.

toString

public java.lang.String toString()

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream inPrintStream)

generateStackTraceString

public static java.lang.String generateStackTraceString(java.lang.Throwable t)


Copyright © 2002-2006 CodeStreet. All Rights Reserved.