Oracle Fusion Middleware
Java API Reference for Oracle BPM Suite
11g Release 1 (11.1.1.7.0)
E25378-07

oracle.bpm.services.common.exception
Class BPMRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.bpm.services.common.exception.BPMRuntimeException
All Implemented Interfaces:
java.io.Serializable

public class BPMRuntimeException
extends java.lang.RuntimeException
implements java.io.Serializable

BPM runtime exception.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
BPMRuntimeException(int errorCode)
          Creates a new BPMRuntimeException instance.
BPMRuntimeException(int errorCode, java.lang.Object[] objs, java.lang.Throwable t)
          Creates a new BPMRuntimeException instance.
BPMRuntimeException(Severity severity, int errorCode, java.lang.Object[] objs)
          Creates a new BPMRuntimeException instance.
BPMRuntimeException(Severity severity, int errorCode, java.lang.Object[] objs, java.lang.Throwable t)
          Creates a new BPMRuntimeException instance.
 
Method Summary
 LoggerComponent getComponent()
          Returns the logger component of this BPMRuntimeException object.
 java.lang.String getDescription()
          Returns the error description of this BPMRuntimeException object.
 java.lang.Object[] getErrorArgs()
          Returns the error parameters of this BPMRuntimeException object.
 int getErrorCode()
          Returns the error code of this ServerException object.
 java.lang.String getLocalizedMessage()
          Gets localized message
 java.lang.String getMessage()
          Returns exception message string containing name, description and fix (if available)
 java.lang.String getName()
          Returns the error name of this BPMRuntimeException object.
 java.lang.Throwable getRootCause()
          Obtain the exception that caused the ServerException being thrown.
static void setLocale(java.util.Locale l)
          To set the locale of the ResourceBundle
static void setPropertyBundleName(java.lang.String name)
          To set the resource bundle for default locale.
static void setPropertyBundleName(java.lang.String name, java.util.Locale locale)
          To set the resource bundle
 java.lang.String toString()
          Returns exception message string containing BPM-ErrorCode, name, description and fix (if available)
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

BPMRuntimeException

public BPMRuntimeException(int errorCode)
Creates a new BPMRuntimeException instance.

Parameters:
errorCode - an int value

BPMRuntimeException

public BPMRuntimeException(Severity severity,
                           int errorCode,
                           java.lang.Object[] objs)
Creates a new BPMRuntimeException instance.

Parameters:
severity - a Severity value
errorCode - an int value
objs - a java.lang.Object[] value

BPMRuntimeException

public BPMRuntimeException(int errorCode,
                           java.lang.Object[] objs,
                           java.lang.Throwable t)
Creates a new BPMRuntimeException instance.

Parameters:
errorCode - an int value
objs - a java.lang.Object[] value
t - a java.lang.Throwable value

BPMRuntimeException

public BPMRuntimeException(Severity severity,
                           int errorCode,
                           java.lang.Object[] objs,
                           java.lang.Throwable t)
Creates a new BPMRuntimeException instance.

Parameters:
severity - a Severity value
errorCode - an int value
objs - a java.lang.Object[] value
t - a java.lang.Throwable value
Method Detail

setPropertyBundleName

public static void setPropertyBundleName(java.lang.String name,
                                         java.util.Locale locale)
                                  throws java.lang.Exception
To set the resource bundle

Parameters:
name - a String value
locale - a Locale value
Throws:
java.lang.Exception - if an error occurs

setPropertyBundleName

public static void setPropertyBundleName(java.lang.String name)
                                  throws java.lang.Exception
To set the resource bundle for default locale.

Parameters:
name - a String value
Throws:
java.lang.Exception - if an error occurs

setLocale

public static void setLocale(java.util.Locale l)
                      throws java.lang.Exception
To set the locale of the ResourceBundle

Parameters:
l -
Throws:
java.lang.Exception

getComponent

public LoggerComponent getComponent()
Returns the logger component of this BPMRuntimeException object.

Returns:
an int value

getErrorCode

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


getErrorArgs

public java.lang.Object[] getErrorArgs()
Returns the error parameters of this BPMRuntimeException object.

Returns:
an Object[] value

getDescription

public java.lang.String getDescription()
Returns the error description of this BPMRuntimeException object.

Returns:
a String value

getName

public final java.lang.String getName()
Returns the error name of this BPMRuntimeException object.

Returns:
a String value

getRootCause

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


getMessage

public java.lang.String getMessage()
Returns exception message string containing name, description and fix (if available)

Overrides:
getMessage in class java.lang.Throwable
Returns:
a String value

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Gets localized message

Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
a String value

toString

public java.lang.String toString()
Returns exception message string containing BPM-ErrorCode, name, description and fix (if available)

Overrides:
toString in class java.lang.Throwable
Returns:
a String value

Oracle Fusion Middleware
Java API Reference for Oracle BPM Suite
11g Release 1 (11.1.1.7.0)
E25378-07

Copyright © 2009, 2013, Oracle and/or its affiliates. All rights reserved.