com.ibm.as400.opnav
Class OpNavConsoleException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.as400.opnav.OpNavConsoleException

public class OpNavConsoleException
extends java.lang.Exception

Thrown when an error occurs invoking the IBM Admin Console. OpNavConsoleException may wrapper a lower level exception thrown at the time the error was first detected. Applications can retrieve this lower level exception by calling getException().

Since:
v5r1m0
See Also:
Serialized Form

Method Summary
 java.lang.Exception getException()
          Returns the next exception in the chain, if any.
 void printStackTrace()
          Prints this exception and its stack trace to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this exception and its stack trace to the specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this exception and its stack trace to the specified print writer.
 java.lang.String toString()
          Returns a string representation of this OpNavConsoleException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getException

public java.lang.Exception getException()
Returns the next exception in the chain, if any.

Returns:
The exception that this exception wrappers, or null if no lower level exception is available.
Since:
v5r1m0

printStackTrace

public void printStackTrace()
Prints this exception and its stack trace to the standard error stream. If this exception wrappers a lower level exception, the stack trace for that exception will be printed followed by a string representation of this exception object.

Overrides:
printStackTrace in class java.lang.Throwable
Since:
v5r1m0

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this exception and its stack trace to the specified print stream. If this exception wrappers a lower level exception, the stack trace for that exception will be printed followed by a string representation of this exception object.

Overrides:
printStackTrace in class java.lang.Throwable
Since:
v5r1m0

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints this exception and its stack trace to the specified print writer. If this exception wrappers a lower level exception, the stack trace for that exception will be printed followed by a string representation of this exception object.

Overrides:
printStackTrace in class java.lang.Throwable
Since:
v5r1m0

toString

public java.lang.String toString()
Returns a string representation of this OpNavConsoleException.

Overrides:
toString in class java.lang.Throwable
Returns:
A string representation of this object. If this exception wrappers a lower level exception, the string will incorporate the representation of that exception.
Since:
v5r1m0