Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1)

E10663-03


oracle.rules.sdk2.exception
Class SDKException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.rules.sdk2.exception.SDKException

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConcurrentUpdateException, DeleteException, RepositoryException, SDKWarning

public class SDKException
extends java.lang.Exception

Base Exception for Oracle Rules SDK Component

See Also:
Serialized Form

Constructor Summary
SDKException(java.lang.String code, DictionaryObject dobj)
           
SDKException(java.lang.String code, DictionaryObject dobj, java.lang.String... info)
           
SDKException(java.lang.String code, DictionaryObject dobj, java.lang.Throwable t)
           
SDKException(java.lang.String code, DictionaryObject dobj, java.lang.Throwable t, java.lang.String... info)
           
SDKException(java.lang.String code, java.lang.String propertyName, DictionaryObject dobj, java.lang.String... info)
           
SDKException(java.lang.String code, java.lang.String propertyName, DictionaryObject dobj, java.lang.Throwable base, java.lang.String... info)
           

 

Method Summary
 void addToken(java.lang.Object token)
           
 java.util.List<java.lang.String> getDetails(java.util.Locale locale)
           
 DictionaryObject getDictionaryObject()
           
 java.lang.String getErrorCode()
          Returns the Message/Exception code.
 java.lang.String getMessage()
          Method that overrides getMessage() method of the Exception class.
 java.lang.String getMessage(java.util.Locale locale)
          Method to retrieve (entire) exception message with a given Locale.
 MessageInfo getMessageInfo()
           
 java.lang.String getMessageOnly(java.util.Locale locale)
          Method to retrieve exception message only (exclude error code and root cause)
 java.lang.String getPropertyName()
          if the exception applies to a property of the Dictionary Object, return its name.
 java.lang.String getRootMessage()
          Method to get root exception message.
 java.lang.String getStackTraceAsString()
           
 java.lang.Object[] getTokens()
           
 void setDetails(java.util.List<SDKException> details)
           

 

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

 

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

 

Constructor Detail

SDKException

public SDKException(java.lang.String code,
                    DictionaryObject dobj)

SDKException

public SDKException(java.lang.String code,
                    DictionaryObject dobj,
                    java.lang.Throwable t)

SDKException

public SDKException(java.lang.String code,
                    DictionaryObject dobj,
                    java.lang.String... info)

SDKException

public SDKException(java.lang.String code,
                    DictionaryObject dobj,
                    java.lang.Throwable t,
                    java.lang.String... info)

SDKException

public SDKException(java.lang.String code,
                    java.lang.String propertyName,
                    DictionaryObject dobj,
                    java.lang.String... info)

SDKException

public SDKException(java.lang.String code,
                    java.lang.String propertyName,
                    DictionaryObject dobj,
                    java.lang.Throwable base,
                    java.lang.String... info)

Method Detail

getDictionaryObject

public DictionaryObject getDictionaryObject()

getPropertyName

public java.lang.String getPropertyName()
if the exception applies to a property of the Dictionary Object, return its name. Else return "".
Returns:
name of property or "".

addToken

public void addToken(java.lang.Object token)

getTokens

public java.lang.Object[] getTokens()

getMessage

public java.lang.String getMessage()
Method that overrides getMessage() method of the Exception class.
Overrides:
getMessage in class java.lang.Throwable
Returns:
the message associated with this exception.

getMessage

public java.lang.String getMessage(java.util.Locale locale)
Method to retrieve (entire) exception message with a given Locale. The entire messge includes root cause and error code.

getDetails

public java.util.List<java.lang.String> getDetails(java.util.Locale locale)

setDetails

public void setDetails(java.util.List<SDKException> details)

getMessageOnly

public java.lang.String getMessageOnly(java.util.Locale locale)
Method to retrieve exception message only (exclude error code and root cause)

getRootMessage

public java.lang.String getRootMessage()
Method to get root exception message.

getErrorCode

public java.lang.String getErrorCode()
Returns the Message/Exception code.

getMessageInfo

public MessageInfo getMessageInfo()

getStackTraceAsString

public java.lang.String getStackTraceAsString()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1)

E10663-03


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