Package com.webmethods.portal.bizPolicy
Class BizException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.webmethods.portal.PortalException
com.webmethods.portal.bizPolicy.BizException
- All Implemented Interfaces:
IPortalException
,Serializable
BizException is the subclass of
PortalException
that gets thrown from Business Policies
(IBizPolicy
and ICommand
).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.portal.PortalException
PortalException.IPortalExceptionDelegate
-
Field Summary
FieldsFields inherited from class com.webmethods.portal.PortalException
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 Summary
ConstructorsConstructorDescriptionBizException
(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. -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the component that threw this exception.void
setBizCommand
(String bizCommand) Set the name of the component that threw this exception.Methods inherited from class com.webmethods.portal.PortalException
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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
m_bizCommand
Name of component that threw this exception.
-
-
Constructor Details
-
BizException
BizException with wrapped Throwable or Exception, flag indicating whether exception was expected or not, and name of throwing component.- Parameters:
target
- the wrapped Throwable or Exception. seePortalException.getTargetException()
isExpected
- if this is an expected exception, it won't be written to the logsbizCommand
- the name of theIComponent
that threw this exception
-
BizException
Constructor to create a localized exception message. TheResourceBundle
will be inferred from thesource
paramter The messageKey will be used to obtain the correct localized message -
BizException
public BizException(Class<? extends ResourceBundle> resourceBundleClass, String messageKey, Object[] messageArgs) Constructor to create a localized bundle. TheResourceBundle
will be inferred from thesource
paramter The messageKey will be used to obtain the correct localized message The messageArgs will be used to format the messag -
BizException
public BizException(Class<? extends ResourceBundle> resourceBundleClass, String messageKey, String bizCommand) Constructor to create a localized exception message. TheResourceBundle
will be inferred from thesource
paramter The messageKey will be used to obtain the correct localized message -
BizException
public BizException(Class<? extends ResourceBundle> resourceBundleClass, String messageKey, Object[] messageArgs, String bizCommand) Constructor to create a localized bundle. TheResourceBundle
will be inferred from thesource
paramter The messageKey will be used to obtain the correct localized message The messageArgs will be used to format the messag -
BizException
-
BizException
BizException with wrapped Throwable or Exception and name of throwing component.- Parameters:
target
- the wrapped Throwable or Exception. seePortalException.getTargetException()
bizCommand
- the name of theIComponent
that threw this exception
-
BizException
Deprecated. -
BizException
Deprecated. -
BizException
Deprecated. -
BizException
Deprecated. -
BizException
@Deprecated public BizException(String message, Throwable target, boolean isExpected, String bizCommand) Deprecated.
-
-
Method Details
-
getBizCommand
Get the name of the component that threw this exception.- Returns:
- bizCommand the name of the
IComponent
that threw this exception
-
setBizCommand
Set the name of the component that threw this exception.- Parameters:
bizCommand
- the name of theIComponent
that threw this exception
-