|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.wsm.common.exception.BaseException
public class BaseException
WS exception base class that extends from JDK 1.4 java Exception with nested/chained exception handling. All constructor classes enforce the usage of errorCode passing.
Field Summary | |
---|---|
protected Object[] |
m_arguments Arguments to the error message |
protected String |
m_bundleType Message Bundle Type |
protected String |
m_errorCode the error code in the format of TBD |
Constructor Summary | |
---|---|
BaseException(String errorCode) To create an exception with a predefined component-based error code. |
|
BaseException(String errorCode, Object[] args) To create an exception with a predefined component-based error code and an array of argument values that will be formated according to errorCode's corresponding message string. |
|
BaseException(String errorCode, Object[] args, Throwable cause) To create an exception with a predefined component-based error code and an array of argument values that will be formated according to errorCode's corresponding message string, plus the parent cause of the exception. |
|
BaseException(String errorCode, Throwable cause) To create an exception with a predefined component-based error code and a parent cause (an Exception or Throwable). |
|
BaseException(Throwable cause) To create an exception without error code but the parent cause, an exception or Throwable. |
Method Summary | |
---|---|
Object[] |
getArguments() Get an array of argument objects of this exception |
String |
getErrorCode() Get the error code of this exception |
String |
getLocalizedMessage() To get the localized error message of this class with default locale. |
String |
getLocalizedMessage(Locale currentLocale) Gets the localized error message that led to the exception corresponding to the given errorCode. |
String |
getMessage() To get the localized error message of this class with default locale |
protected void |
setBundleType(String bundleType) |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String m_errorCode
protected Object[] m_arguments
protected String m_bundleType
Constructor Detail |
---|
public BaseException(String errorCode)
errorCode
- The predefined component-base error codepublic BaseException(Throwable cause)
cause
-public BaseException(String errorCode, Object[] args)
errorCode
- The predefined component-based error code defined in corresoibdubgMessageCode.javaargs
- The array of argument valuespublic BaseException(String errorCode, Throwable cause)
errorCode
- The predefined component-based error code defined in correspondingMessageCode.javacause
- The parent Throwablepublic BaseException(String errorCode, Object[] args, Throwable cause)
errorCode
- The predefined component-based error code defined in correspondingMessageCode.javaargs
- The array of argument valuescause
- The parent ThrowableMethod Detail |
---|
public Object[] getArguments()
public String getErrorCode()
public String getLocalizedMessage(Locale currentLocale)
currentLocale
- - the locale of which the localized error message is requested.public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public String getMessage()
getMessage
in class Throwable
protected void setBundleType(String bundleType)
|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |