Package com.sun.identity.workflow
Class WorkflowException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.workflow.WorkflowException
-
- All Implemented Interfaces:
L10NMessage,Serializable
public class WorkflowException extends Exception implements L10NMessage
Workflow related exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkflowException(String message)WorkflowException(String errorCode, Object... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Use this method to chain this exception with another to get localized error messge use getL10NMessage methodStringgetL10NMessage(Locale locale)Use this method to get localized error message directly.StringgetMessage()Use this method to get error message in default ENGLISH locale.Object[]getMessageArgs()Use this method to chain this exception with another to get localized error messge use getL10NMessage methodStringgetResourceBundleName()Use this method to chain this exception with another to get localized error messge use getL10NMessage method-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getResourceBundleName
public String getResourceBundleName()
Description copied from interface:L10NMessageUse this method to chain this exception with another to get localized error messge use getL10NMessage method- Specified by:
getResourceBundleNamein interfaceL10NMessage- Returns:
- ResourceBundle Name associated with this error message.
-
getErrorCode
public String getErrorCode()
Description copied from interface:L10NMessageUse this method to chain this exception with another to get localized error messge use getL10NMessage method- Specified by:
getErrorCodein interfaceL10NMessage- Returns:
- Error code associated with this error message.
-
getMessageArgs
public Object[] getMessageArgs()
Description copied from interface:L10NMessageUse this method to chain this exception with another to get localized error messge use getL10NMessage method- Specified by:
getMessageArgsin interfaceL10NMessage- Returns:
- arguments for formatting this error message. You need to use MessageFormat class to format the message It can be null.
-
getMessage
public String getMessage()
Description copied from interface:L10NMessageUse this method to get error message in default ENGLISH locale.- Specified by:
getMessagein interfaceL10NMessage- Overrides:
getMessagein classThrowable- Returns:
- gets error message
-
getL10NMessage
public String getL10NMessage(Locale locale)
Description copied from interface:L10NMessageUse this method to get localized error message directly.- Specified by:
getL10NMessagein interfaceL10NMessage- Parameters:
locale- Locale of the error message.- Returns:
- localized error message.
-
-