JSlim  


com.gtcgroup.jslim
Class JSlimRuntimeException

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

public final class JSlimRuntimeException
extends java.lang.RuntimeException

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.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
(package private) JSlimRuntimeException(java.lang.Exception exception)
          Creates a new JSlimException wrapping another exception_, and with no detail message.
(package private) JSlimRuntimeException(java.lang.String message)
          Creates a JSlimException with the specified detail message.
private JSlimRuntimeException(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

JSlimRuntimeException

private JSlimRuntimeException(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_.

JSlimRuntimeException

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

Parameters:
message - the detail message.

JSlimRuntimeException

JSlimRuntimeException(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.