Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-01


com.oracle.bpel.client
Class ServerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.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

Field Summary
protected  int mErrorCode
          Exception code.

 

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(ServerException causedBy)
          Constructs a ServerException that embeds the originally thrown exception.
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

mErrorCode

protected int mErrorCode
Exception code.

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.
Parameters:
e - the original exception. The original exception is saved for later retrieval by the getCausedByThrowable() method.

ServerException

public ServerException(ServerException causedBy)
Constructs a ServerException that embeds the originally thrown exception. This version sets the error code to the cause's error code.
Parameters:
e - the original exception. The original exception is saved for later retrieval by the getCausedByThrowable() method.

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.
Overrides:
getMessage in class java.lang.Throwable

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.

Overrides:
getLocalizedMessage in class java.lang.Throwable

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.
Overrides:
printStackTrace in class java.lang.Throwable

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.
Overrides:
toString in class java.lang.Throwable

Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-01


Copyright © 2006, Oracle. All rights reserved.