JSlim  


com.gtcgroup.jslim
Class JSlimException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.gtcgroup.jslim.JSlimException
All Implemented Interfaces:
java.io.Serializable

public final class JSlimException
extends java.lang.Exception

This class implements an exception which can wrap a lower-level exception.

Copyright 2002 Sun Microsystems, Inc. All rights reserved.

See Also:
Serialized Form

Field Summary
private  java.lang.Exception exception
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
(package private) JSlimException(java.lang.Exception exception)
          Creates a new JSlimException wrapping another exception, and with no detail message.
(package private) JSlimException(java.lang.String message)
          Creates a JSlimException with the specified detail message.
private JSlimException(java.lang.String message, java.lang.Exception exception)
          Creates a new JSlimException wrapping another exception, and with a detail message.
 
Method Summary
 java.lang.Exception getException()
          Gets the wrapped exception.
private  java.lang.Exception getRootCause()
          Retrieves (recursively) the root cause exception.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exception

private final java.lang.Exception exception
Constructor Detail

JSlimException

private JSlimException(java.lang.String message,
                       java.lang.Exception exception)
Creates a new JSlimException wrapping another exception, and with a detail message.

Parameters:
message - the detail message.
exception - the wrapped exception.

JSlimException

JSlimException(java.lang.String message)
Creates a JSlimException with the specified detail message.

Parameters:
message - the detail message.

JSlimException

JSlimException(java.lang.Exception exception)
Creates a new JSlimException wrapping another exception, and with no detail message.

Parameters:
exception - the wrapped exception.
Method Detail

getException

public final java.lang.Exception getException()
Gets the wrapped exception.

Returns:
the wrapped exception.

getRootCause

private java.lang.Exception getRootCause()
Retrieves (recursively) the root cause exception.

Returns:
the root cause exception.

toString

public final java.lang.String toString()

JSlim  


Copyright (c) 1999 - 2004 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.