com.ibm.jarm.api.exception

Class IERWorkflowException

  • All Implemented Interfaces:
    java.io.Serializable


    public class IERWorkflowException
    extends RMRuntimeException
    Primary exception class for use by the external IER Workflow support components.

    The Locale used in generation of the IERWorkflowException's message string is based on the value of the current thread's RMUserContext. The JarmLogger locale determines how the exception message is localized for purposes of error logging.

    This differentiation ensures that all logging entry messages are based on the same locale while the message attached to a IERWorkflowException instance is based upon the locale of the current user, since the message is displayed to that user.

    See Also:
    Serialized Form
    • Method Detail

      • createIERWorkflowException

        public static IERWorkflowException createIERWorkflowException(RMErrorCode code,
                                                      java.lang.Object... params)
        Creates a new IERWorkflowException instance.
        Parameters:
        code - the RMErrorCode value that defines the cause of this exception. This entry cannot be null.
        params - optional exception message formatting parameters.
        Returns:
        A new IERWorkflowException instance.
      • createIERWorkflowException

        public static IERWorkflowException createIERWorkflowException(RMErrorCode code,
                                                      RMErrorStack errorStack,
                                                      java.lang.Object... params)
        Creates a new IERWorkflowException instance.
        Parameters:
        code - the RMErrorCode value that defines the cause of this exception. This entry cannot be null.
        errorStack - a RMErrorStack containing repository-specific error information. This entry can be null.
        params - optional exception message formatting parameters.
        Returns:
        A new IERWorkflowException instance.
      • createIERWorkflowException

        public static IERWorkflowException createIERWorkflowException(java.lang.Throwable cause,
                                                      RMErrorCode code,
                                                      java.lang.Object... params)
        Creates a new IERWorkflowException instance.
        Parameters:
        cause - the underlying cause for this exception.
        code - the RMErrorCode value that defines the cause of this exception. This entry cannot be null.
        params - optional exception message formatting parameters.
        Returns:
        A new IERWorkflowException instance.
      • createIERWorkflowException

        public static IERWorkflowException createIERWorkflowException(java.lang.Throwable cause,
                                                      RMErrorCode code,
                                                      RMErrorStack errorStack,
                                                      java.lang.Object... params)
        Creates a new IERWorkflowException instance.
        Parameters:
        cause - the underlying cause for this exception.
        code - the RMErrorCode value that defines the cause of this exception. This entry cannot be null.
        errorStack - a RMErrorStack containing repository-specific error information. This entry can be null.
        params - optional exception message formatting parameters.
        Returns:
        A new IERWorkflowException instance.

© Copyright IBM Corp. 2010, 2013. All Rights Reserved.