Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.utils
Class NestedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by weblogic.utils.NestedException
All Implemented Interfaces:
Serializable, NestedThrowable
Direct Known Subclasses:
AlreadyExistsException, CreateException, DeserializationException, DistributedUpdateException, InvalidCursorException, InvalidParameterException, InvalidPredicateException, ManagementException, MigrationException, NotFoundException, RemoveException, ResourceException, SecurityServiceException, SecuritySpiException, SerializationException

public class NestedException
extends Exception
implements NestedThrowable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface weblogic.utils.NestedThrowable
NestedThrowable.Util
 
Field Summary
protected  Throwable nested
           
 
Constructor Summary
NestedException()
           
NestedException(String msg)
           
NestedException(String msg, Throwable nested)
           
NestedException(Throwable nested)
           
 
Method Summary
 String getMessage()
           
 Throwable getNested()
          Gets the nested Throwable.
 Throwable getNestedException()
          Gets the nested exception.
 void printStackTrace()
          Prints the stack trace associated with this exception and its nested exception to System.err.
 void printStackTrace(PrintStream s)
          Prints the stack trace associated with this exception and its nested exception.
 void printStackTrace(PrintWriter w)
          Prints the stack trace associated with this exception and its nested exception.
 void superPrintStackTrace(PrintStream ps)
          Call super.printStackTrace().
 void superPrintStackTrace(PrintWriter pw)
          Call super.printStackTrace().
 String superToString()
          Call super.toString().
 String toString()
          Prints the exception message and its nested exception message.
 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nested

protected Throwable nested
Constructor Detail

NestedException

public NestedException()

NestedException

public NestedException(String msg)

NestedException

public NestedException(Throwable nested)

NestedException

public NestedException(String msg,
                       Throwable nested)
Method Detail

getNestedException

public Throwable getNestedException()
Gets the nested exception.

Returns:
Nested exception

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getNested

public Throwable getNested()
Gets the nested Throwable.

Specified by:
getNested in interface NestedThrowable
Returns:
Nested exception

superToString

public String superToString()
Description copied from interface: NestedThrowable
Call super.toString(). [Kludge but necessary.]

Specified by:
superToString in interface NestedThrowable

superPrintStackTrace

public void superPrintStackTrace(PrintStream ps)
Description copied from interface: NestedThrowable
Call super.printStackTrace(). [Kludge but necessary.]

Specified by:
superPrintStackTrace in interface NestedThrowable

superPrintStackTrace

public void superPrintStackTrace(PrintWriter pw)
Description copied from interface: NestedThrowable
Call super.printStackTrace(). [Kludge but necessary.]

Specified by:
superPrintStackTrace in interface NestedThrowable

toString

public String toString()
Prints the exception message and its nested exception message.

Overrides:
toString in class Throwable
Returns:
String representation of the exception

printStackTrace

public void printStackTrace(PrintStream s)
Prints the stack trace associated with this exception and its nested exception.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintStream

printStackTrace

public void printStackTrace(PrintWriter w)
Prints the stack trace associated with this exception and its nested exception.

Overrides:
printStackTrace in class Throwable
Parameters:
w - PrintStream

printStackTrace

public void printStackTrace()
Prints the stack trace associated with this exception and its nested exception to System.err.

Overrides:
printStackTrace in class Throwable

Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02