deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.enterprise
Class ServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.deegree.enterprise.ServiceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SendMailException, UnknownOperatorNameException

public class ServiceException
extends java.lang.Exception
implements java.io.Serializable

The ServiceException class is used across all core framework services and is also suitable for use by developers extending the framework using the framework SPI. Based on code published by Terren Suydam in JavaWorld

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Torsten Friebe , last edited by: $Author: mschneider $
See Also:
JavaWorld tip 91, Serialized Form

Constructor Summary
ServiceException()
          java.lang.Exception constructors
ServiceException(java.lang.String msg)
          Constructor declaration
ServiceException(java.lang.String msg, java.lang.Throwable nestedException)
          Constructor declaration
ServiceException(java.lang.Throwable nestedException)
          additional c'tors - nest the exceptions, storing the stack trace
 
Method Summary
static java.lang.String generateStackTraceString(java.lang.Throwable t)
          Convert a stack trace to a String so it can be serialized
 java.lang.String getMessage()
          Method declaration
 java.lang.Throwable getNestedException()
          Method declaration
 java.lang.String getStackTraceString()
          descend through linked-list of nesting exceptions, & output trace note that this displays the 'deepest' trace first
 void printStackTrace()
          Method declaration
 void printStackTrace(java.io.PrintStream inPrintStream)
          Method declaration
 void printStackTrace(java.io.PrintWriter inPrintWriter)
          Method declaration
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceException

public ServiceException()
java.lang.Exception constructors


ServiceException

public ServiceException(java.lang.String msg)
Constructor declaration

Parameters:
msg -

ServiceException

public ServiceException(java.lang.Throwable nestedException)
additional c'tors - nest the exceptions, storing the stack trace

Parameters:
nestedException -

ServiceException

public ServiceException(java.lang.String msg,
                        java.lang.Throwable nestedException)
Constructor declaration

Parameters:
msg -
nestedException -
Method Detail

generateStackTraceString

public static java.lang.String generateStackTraceString(java.lang.Throwable t)
Convert a stack trace to a String so it can be serialized

Parameters:
t -
Returns:
stack trace as String

getNestedException

public java.lang.Throwable getNestedException()
Method declaration

Returns:
nestedException

getStackTraceString

public java.lang.String getStackTraceString()
descend through linked-list of nesting exceptions, & output trace note that this displays the 'deepest' trace first

Returns:
stack trace as String

getMessage

public java.lang.String getMessage()
Method declaration

Overrides:
getMessage in class java.lang.Throwable
Returns:
message as String

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable
Returns:
String

printStackTrace

public void printStackTrace()
Method declaration

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream inPrintStream)
Method declaration

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
inPrintStream -

printStackTrace

public void printStackTrace(java.io.PrintWriter inPrintWriter)
Method declaration

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
inPrintWriter -

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org