org.scrashmeow.ojb.console
Class OjbcRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.scrashmeow.ojb.console.OjbcRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ValidationException

public class OjbcRuntimeException
extends java.lang.RuntimeException

Base class for all runtime exceptions thrown within the console application The constructors within this class log the stack trace so by constructing an instance of this exception, logging automatically occurs.

Author:
Alexander Bibighaus
See Also:
Serialized Form

Constructor Summary
OjbcRuntimeException()
          Constructor for BaseException.
OjbcRuntimeException(java.lang.String msg)
          Constructor to create an exception with a message.
OjbcRuntimeException(java.lang.String msg, java.lang.Throwable nested)
          Constructor to create an exception with a message and a nested exception.
OjbcRuntimeException(java.lang.Throwable nested)
          Constructor to create an exception with a nested exception.
 
Method Summary
static java.lang.String getStackTraceAsString(java.lang.Throwable ex)
          Return the stack trace of the current exception as a string.
 
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
 

Constructor Detail

OjbcRuntimeException

public OjbcRuntimeException()
Constructor for BaseException.


OjbcRuntimeException

public OjbcRuntimeException(java.lang.String msg)
Constructor to create an exception with a message.

Parameters:
msg - the error message

OjbcRuntimeException

public OjbcRuntimeException(java.lang.String msg,
                            java.lang.Throwable nested)
Constructor to create an exception with a message and a nested exception.

Parameters:
msg - the error message
nested - the nested exception

OjbcRuntimeException

public OjbcRuntimeException(java.lang.Throwable nested)
Constructor to create an exception with a nested exception.

Parameters:
nested - the nested exception
Method Detail

getStackTraceAsString

public static java.lang.String getStackTraceAsString(java.lang.Throwable ex)
Return the stack trace of the current exception as a string.

Parameters:
ex - the exception
Returns:
A String with the stack trace


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.