+

Search Tips   |   Advanced Search


com.ibm.workplace.wcm.api.exceptions
Class WCMRuntimeException

 java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.ibm.workplace.wcm.api.exceptions.WCMRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
WCMIllegalStateException

public abstract class WCMRuntimeException
extends java.lang.RuntimeException

The base Lotus Web Content Management API Runtime Exception.

See Also:
Serialized Form

Field Summary
static int ERR_APTRIX
          The default error code
 
Constructor Summary
WCMRuntimeException(java.lang.String detail)
          Constructor that requires detail
WCMRuntimeException(java.lang.String detail, java.lang.Throwable cause)
          Constructor that requires detail plus a cause exception
 
Method Summary
 java.lang.Throwable getCause()
          Retrieves the cause exception for this exception
 int getErrorCode()
          The error code for this exception.
 java.lang.String getMessage()
          Retrieves the message that accompanies this exception.
 void printStackTrace()
          Overridden to include cause
 void printStackTrace(java.io.PrintStream s)
          Overridden to include cause
 void printStackTrace(java.io.PrintWriter s)
          Overridden to include cause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERR_APTRIX

 public static final int ERR_APTRIX
The default error code

See Also:
Constant Field Values
Constructor Detail

WCMRuntimeException

 public WCMRuntimeException(java.lang.String detail)
Constructor that requires detail

Parameters:
detail - a message describing extra information about the exception

WCMRuntimeException

 public WCMRuntimeException(java.lang.String detail,
                           java.lang.Throwable cause)
Constructor that requires detail plus a cause exception

Parameters:
detail - a message description extra information about the exception
cause - the exception that caused this exception
Method Detail

getMessage

 public java.lang.String getMessage()
Retrieves the message that accompanies this exception. The message also includes the causes exception if there is a cause exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the exception's message

getCause

 public java.lang.Throwable getCause()
Retrieves the cause exception for this exception

Overrides:
getCause in class java.lang.Throwable
Returns:
the cause exception or null if there was no cause exception.

getErrorCode

 public int getErrorCode()
The error code for this exception.

Note:This implementation is the default error code for the AptrixException. Subclasses may override this for a more appropriate error number.

Returns:
the error code for this exception.

printStackTrace

 public void printStackTrace()
Overridden to include cause

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

 public void printStackTrace(java.io.PrintStream s)
Overridden to include cause

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

 public void printStackTrace(java.io.PrintWriter s)
Overridden to include cause

Overrides:
printStackTrace in class java.lang.Throwable