Oracle BPEL Process Manager
Client API Reference
10g Release 2 (10.1.2)
B25709-01


com.oracle.bpel.client
Class ServerException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.oracle.bpel.client.ServerException

All Implemented Interfaces:
java.io.Serializable

public class ServerException
extends java.lang.Exception
implements java.io.Serializable

A ServerException is the common superclass for all Orabpel exceptions that may be thrown by the process domain. A ServerException will most likely act as a wrapper class for various Exception objects thrown during run-time.

Since:
2.0
See Also:
Serialized Form

Constructor Summary
ServerException()
          Constructs a ServerException with no detail message and exception code of 0.
ServerException(int errorCode)
          Constructs a ServerException with no details message and the specified error code.
ServerException(java.lang.String message)
          Constructs a ServerException with the specified detail message.
ServerException(java.lang.String message, int errorCode)
          Constructs a ServerException with the specified detail message and error code.
ServerException(java.lang.Throwable causedBy)
          Constructs a ServerException that embeds the originally thrown exception.

 

Method Summary
 int getErrorCode()
          Returns the error code of this ServerException object.
 java.lang.String getLocalizedMessage()
          Creates a localized description of this ServerException.
 java.lang.String getMessage()
          Returns the error message string of this ServerException object.
 java.lang.Throwable getRootCause()
          Obtain the exception that caused the ServerException being thrown.
 void printStackTrace()
          Prints this ServerException and its backtrace to the standard error stream.
 java.lang.String toString()
          Returns a short description of this ServerException object.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ServerException

public ServerException()
Constructs a ServerException with no detail message and exception code of 0.

ServerException

public ServerException(int errorCode)
Constructs a ServerException with no details message and the specified error code.

ServerException

public ServerException(java.lang.String message)
Constructs a ServerException with the specified detail message. Exception code defaults to 0.
Parameters:
message - the error message. The error message is saved for later retrieval by the getMessage() method.

ServerException

public ServerException(java.lang.String message,
                       int errorCode)
Constructs a ServerException with the specified detail message and error code.
Parameters:
message - the error message. The error message is saved for later retrieval by the getMessage() method.

ServerException

public ServerException(java.lang.Throwable causedBy)
Constructs a ServerException that embeds the originally thrown exception. Exception code defaults to 0.

Method Detail

getErrorCode

public int getErrorCode()
Returns the error code of this ServerException object.

getMessage

public java.lang.String getMessage()
Returns the error message string of this ServerException object. If this exception was caused by another exception, the message of the inner exception is returned. If this exception was created with no error message null is returned.

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Creates a localized description of this ServerException. Subclasses may override this method in order to produce a locale-specific message. For subclasses that do not override this method, the default implementation returns the same result as getMessage().

If this exception was caused by another exception, the localized message of the inner exception is returned.


printStackTrace

public void printStackTrace()
Prints this ServerException and its backtrace to the standard error stream. If this exception was caused by another exception, the stack trace of the inner exception is printed to the error output stream.

getRootCause

public java.lang.Throwable getRootCause()
Obtain the exception that caused the ServerException being thrown.

toString

public java.lang.String toString()
Returns a short description of this ServerException object. If this exception was caused by another exception, the toString() method of the inner exception is returned.

Oracle BPEL Process Manager
Client API Reference
10g Release 2 (10.1.2)
B25709-01


Copyright © 2005, Oracle. All rights reserved.