Skip navigation links

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


oracle.bpm.services.common.exception
Class BPMException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.bpm.services.common.exception.BPMException

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BPMOrganizationException, ProcessMetadataServiceException

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

BPM exception.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           

 

Constructor Summary
BPMException(BPMExceptionContext exCtx)
          Creates a new BPMException instance.
BPMException(java.lang.Exception ex)
          Creates a new BPMException instance.
BPMException(int errorCode)
          Creates a new BPMException instance.
BPMException(int errorCode, java.lang.Object[] objs, java.lang.Throwable t)
          Creates a new BPMException instance.
BPMException(Severity severity, int errorCode, java.lang.Object[] objs, java.lang.Throwable t)
          Creates a new BPMException instance.

 

Method Summary
 LoggerComponent getComponent()
          Returns the logger component of this BPMException object.
 java.lang.String getDescription()
          Returns the error description of this BPMException object.
 java.lang.Object[] getErrorArgs()
          Returns the error parameters of this BPMException object.
 int getErrorCode()
          Returns the error code of this BPMException object.
 BPMExceptionContext getExceptionContext()
          Gets exception context
 java.lang.String getLocalizedMessage()
          Gets localized message
 java.lang.String getMessage()
          Returns exception message string containing exception type, severity, name, description and fix.
 java.lang.String getName()
          Returns the error name of this BPMException object.
 java.lang.Throwable getRootCause()
          Obtain the exception that caused the BPMException 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, exception type, severity, name, description and fix.

 

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

BPMException

public BPMException(int errorCode)
Creates a new BPMException instance.
Parameters:
errorCode - an int value

BPMException

public BPMException(BPMExceptionContext exCtx)
Creates a new BPMException instance.
Parameters:
exCtx - BPMExceptionContext value

BPMException

public BPMException(java.lang.Exception ex)
Creates a new BPMException instance.
Parameters:
ex - Exception instance

BPMException

public BPMException(int errorCode,
                    java.lang.Object[] objs,
                    java.lang.Throwable t)
Creates a new BPMException instance.
Parameters:
errorCode - an int value, Logger's componentId is computed based on errorCode
objs - a java.lang.Object[] value
t - a java.lang.Throwable value

BPMException

public BPMException(Severity severity,
                    int errorCode,
                    java.lang.Object[] objs,
                    java.lang.Throwable t)
Creates a new BPMException instance.
Parameters:
severity - a Severity value
errorCode - an int value. Logger's componentId is computed based on errorCode
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

getExceptionContext

public BPMExceptionContext getExceptionContext()
Gets exception context
Returns:
an BPMExceptionContext value

getComponent

public LoggerComponent getComponent()
Returns the logger component of this BPMException object.
Returns:
an int value

getErrorCode

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

getErrorArgs

public java.lang.Object[] getErrorArgs()
Returns the error parameters of this BPMException object.
Returns:
an Object[] value

getDescription

public java.lang.String getDescription()
Returns the error description of this BPMException object.
Returns:
a String value

getName

public final java.lang.String getName()
Returns the error name of this BPMException object.
Returns:
a String value

getRootCause

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

getMessage

public java.lang.String getMessage()
Returns exception message string containing exception type, severity, name, description and fix.
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, exception type, severity, name, description and fix.
Overrides:
toString in class java.lang.Throwable
Returns:
a String value

Skip navigation links

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


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