creamtec.webcream.core
Class WebCreamException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.reflect.InvocationTargetException
              extended by creamtec.webcream.core.WebCreamException
All Implemented Interfaces:
ExceptionInfo, java.io.Serializable
Direct Known Subclasses:
RequestTimeoutException

public class WebCreamException
extends java.lang.reflect.InvocationTargetException
implements ExceptionInfo

Used to report all errors in WebCream

See Also:
Serialized Form

Field Summary
static int EXIT_VM
           
 
Constructor Summary
WebCreamException(java.lang.String msg)
          Initializes exception
WebCreamException(java.lang.String msg, boolean traceStack)
          Initializes exception
WebCreamException(java.lang.String msg, int code)
          Initializes exception
WebCreamException(java.lang.String msg, int code, java.lang.Throwable nested)
          Initializes exception
WebCreamException(java.lang.String msg, int code, java.lang.Throwable nested, boolean traceStack)
          Initializes exception
WebCreamException(java.lang.String msg, java.lang.Throwable nested)
          Initializes exception
WebCreamException(java.lang.String msg, java.lang.Throwable nested, boolean traceStack)
          Initializes exception
 
Method Summary
 int getCode()
          Returns exception code
 java.lang.Throwable getNestedException()
          Returns the exception that triggered this error
 boolean traceStack()
          Returns true if the stack trace of this exception should be written to System.err and the log file
 
Methods inherited from class java.lang.reflect.InvocationTargetException
getCause, getTargetException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXIT_VM

public static final int EXIT_VM
See Also:
Constant Field Values
Constructor Detail

WebCreamException

public WebCreamException(java.lang.String msg)
Initializes exception

Parameters:
msg - message

WebCreamException

public WebCreamException(java.lang.String msg,
                         boolean traceStack)
Initializes exception

Parameters:
msg - message
traceStack - if true, the exception stack will be dumped into System.err

WebCreamException

public WebCreamException(java.lang.String msg,
                         java.lang.Throwable nested)
Initializes exception

Parameters:
msg - message
nested - the original exception that triggered this error

WebCreamException

public WebCreamException(java.lang.String msg,
                         java.lang.Throwable nested,
                         boolean traceStack)
Initializes exception

Parameters:
msg - message
nested - the original exception that triggered this error
traceStack - if true, the exception stack will be dumped into System.err

WebCreamException

public WebCreamException(java.lang.String msg,
                         int code)
Initializes exception

Parameters:
msg - message
code - error code

WebCreamException

public WebCreamException(java.lang.String msg,
                         int code,
                         java.lang.Throwable nested)
Initializes exception

Parameters:
msg - message
code - error code
nested - the original exception that triggered this error

WebCreamException

public WebCreamException(java.lang.String msg,
                         int code,
                         java.lang.Throwable nested,
                         boolean traceStack)
Initializes exception

Parameters:
msg - message
code - error code
nested - the original exception that triggered this error
traceStack - if true, the exception stack will be dumped into System.err
Method Detail

getCode

public int getCode()
Returns exception code

Returns:
exception code

getNestedException

public java.lang.Throwable getNestedException()
Returns the exception that triggered this error

Specified by:
getNestedException in interface ExceptionInfo
Returns:
Throwable

traceStack

public boolean traceStack()
Returns true if the stack trace of this exception should be written to System.err and the log file

Specified by:
traceStack in interface ExceptionInfo
Returns:
true to trace the stack


Copyright © 2000-2006 CreamTec LLC. All Rights Reserved.