public class BizException extends PortalException
PortalException
that gets thrown from Business Policies
(IBizPolicy
and ICommand
).PortalException.IPortalExceptionDelegate
Modifier and Type | Field and Description |
---|---|
protected String |
m_bizCommand
Name of component that threw this exception.
|
CURRENT_ERROR_LIST, EXCEPTION_DELEGATE_CLASS_NAME, logger, m_context, m_errorList, m_ignoreTargetMessage, m_isExpected, m_isLocalizable, m_messageArgs, m_messageInfo, m_messageKey, m_resBundleClass, m_target, s_portalExceptionDelegate
Constructor and Description |
---|
BizException(Class<? extends ResourceBundle> resourceBundleClass,
String messageKey)
Constructor to create a localized exception message.
|
BizException(Class<? extends ResourceBundle> resourceBundleClass,
String messageKey,
Object[] messageArgs)
Constructor to create a localized bundle.
|
BizException(Class<? extends ResourceBundle> resourceBundleClass,
String messageKey,
Object[] messageArgs,
String bizCommand)
Constructor to create a localized bundle.
|
BizException(Class<? extends ResourceBundle> resourceBundleClass,
String messageKey,
String bizCommand)
Constructor to create a localized exception message.
|
BizException(String message)
Deprecated.
|
BizException(String message,
boolean isExpected,
String bizCommand)
Deprecated.
|
BizException(String message,
String bizCommand)
Deprecated.
|
BizException(String message,
Throwable target,
boolean isExpected,
String bizCommand)
Deprecated.
|
BizException(String message,
Throwable target,
String bizCommand)
Deprecated.
|
BizException(Throwable target,
boolean isExpected,
String bizCommand)
BizException with wrapped Throwable or Exception, flag indicating whether exception was expected or not,
and name of throwing component.
|
BizException(Throwable target,
Class<? extends ResourceBundle> resourceBundleClass,
String messageKey,
Object[] messageArgs,
String bizCommand) |
BizException(Throwable target,
String bizCommand)
BizException with wrapped Throwable or Exception and name of throwing component.
|
Modifier and Type | Method and Description |
---|---|
String |
getBizCommand()
Get the name of the component that threw this exception.
|
void |
setBizCommand(String bizCommand)
Set the name of the component that threw this exception.
|
addDetailsMesasge, addDetailsMessage, checkExpected, getCause, getContext, getErrorList, getErrorList, getGlobalProvider, getLocalizedMessage, getMessage, getMessageKey, getTargetException, getTLS, initDetailsMessage, isExpected, notImplemented, printFullStackTrace, printFullStackTrace, printStackTrace, printStackTrace, printStackTrace, putTLS, removeTLS, reset, reuseOrWrapException, setContext, setExpected, setIgnoreTargetMessage
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, initCause, setStackTrace, toString
protected String m_bizCommand
public BizException(Throwable target, boolean isExpected, String bizCommand)
target
- the wrapped Throwable or Exception. see PortalException.getTargetException()
isExpected
- if this is an expected exception, it won't be written to the logsbizCommand
- the name of the IComponent
that threw this exceptionpublic BizException(Class<? extends ResourceBundle> resourceBundleClass, String messageKey)
ResourceBundle
will be inferred from the source
paramter
The messageKey will be used to obtain the correct localized messagepublic BizException(Class<? extends ResourceBundle> resourceBundleClass, String messageKey, Object[] messageArgs)
ResourceBundle
will be inferred from the source
paramter
The messageKey will be used to obtain the correct localized message
The messageArgs will be used to format the messagpublic BizException(Class<? extends ResourceBundle> resourceBundleClass, String messageKey, String bizCommand)
ResourceBundle
will be inferred from the source
paramter
The messageKey will be used to obtain the correct localized messagepublic BizException(Class<? extends ResourceBundle> resourceBundleClass, String messageKey, Object[] messageArgs, String bizCommand)
ResourceBundle
will be inferred from the source
paramter
The messageKey will be used to obtain the correct localized message
The messageArgs will be used to format the messagpublic BizException(Throwable target, Class<? extends ResourceBundle> resourceBundleClass, String messageKey, Object[] messageArgs, String bizCommand)
public BizException(Throwable target, String bizCommand)
target
- the wrapped Throwable or Exception. see PortalException.getTargetException()
bizCommand
- the name of the IComponent
that threw this exception@Deprecated public BizException(String message)
@Deprecated public BizException(String message, String bizCommand)
@Deprecated public BizException(String message, boolean isExpected, String bizCommand)
@Deprecated public BizException(String message, Throwable target, String bizCommand)
@Deprecated public BizException(String message, Throwable target, boolean isExpected, String bizCommand)
public String getBizCommand()
IComponent
that threw this exceptionpublic void setBizCommand(String bizCommand)
bizCommand
- the name of the IComponent
that threw this exception