org.scrashmeow.ojb.console
Class OjbcException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.scrashmeow.ojb.console.OjbcException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ControllerException, RepositoryInitializationException, ServiceException, TileViewException

public class OjbcException
extends java.lang.Exception

Base class for all exceptions thrown within the application that would normally derive from Exception. 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
OjbcException()
          Constructor for OjbcException.
OjbcException(java.lang.String msg)
          Constructor to create an exception with a message.
OjbcException(java.lang.String msg, java.lang.Throwable nested)
          Constructor to create an exception with a message and a nested exception.
OjbcException(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

OjbcException

public OjbcException()
Constructor for OjbcException.


OjbcException

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

Parameters:
msg - the error message

OjbcException

public OjbcException(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 - he nested exception

OjbcException

public OjbcException(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.