org.scrashmeow.ojb.console
Class OjbcServletException

java.lang.Object
  |
  +--ServletException
        |
        +--org.scrashmeow.ojb.console.OjbcServletException

public class OjbcServletException
extends ServletException

Base class for all servlet 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
OjbcServletException()
          Constructor for BaseException.
OjbcServletException(java.lang.String msg)
          Constructor to create an exception with a message.
OjbcServletException(java.lang.String msg, java.lang.Throwable nested)
          Constructor to create an exception with a message and a nested exception.
OjbcServletException(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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OjbcServletException

public OjbcServletException()
Constructor for BaseException.


OjbcServletException

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

Parameters:
msg - the error message

OjbcServletException

public OjbcServletException(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

OjbcServletException

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