com.ibm.itim.fesiextensions

Class CustomJSException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • FESI.jslib.JSException
          • com.ibm.itim.fesiextensions.CustomJSException
  • All Implemented Interfaces:
    java.io.Serializable

    Deprecated. 
    This class is part of the FESI script framework and will no longer be supported or updated as of ITIM 5.0. Use ScriptException instead.

    public class CustomJSException
    extends FESI.jslib.JSException
    Represents an exception thrown from a javascript extension. This class supports localization with an interface that allows the specification of a resource bundle message and a set of parameters.
    See Also:
    ScriptException, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String ENCRYPTION_DECRYPTION_ERROR
      Deprecated. 
      Constant representing a message key in a property file CTGIMO104E
      static java.lang.String ILLEGAL_STATE_EXCEPTION_DIROBJECT_NULL
      Deprecated. 
      Constant representing a message key in a property file CTGIMO105E
      static java.lang.String INVALID_CONTEXT
      Deprecated. 
      Constant representing a message key in a property file CTGIMO107E
      static java.lang.String INVALID_JSOBJECT
      Deprecated. 
      Constant representing a message key in a property file CTGIMO101E
      static java.lang.String INVALID_SCOPE_VALUE
      Deprecated. 
      Constant representing a message key in a property file CTGIMO103E
      static java.lang.String JAVA_OBJECT_CREATION_ERROR
      Deprecated. 
      Constant representing a message key in a property file CTGIMO109E
      static java.lang.String PROFILE_MISSING
      Deprecated. 
      Constant representing a message key in a property file CTGIMO106E
      static java.lang.String SCOPE_NOT_INT
      Deprecated. 
      Constant representing a message key in a property file CTGIMO102E
      static java.lang.String SCRIPT_OBJECT_CREATION_ERROR
      Deprecated. 
      Constant representing a message key in a property file CTGIMO108E
      static java.lang.String UNSUPPORTED_CONVERSION
      Deprecated. 
      Constant representing a message key in a property file CTGIMO110E
    • Constructor Summary

      Constructors 
      Constructor and Description
      CustomJSException(java.lang.String msg, java.lang.Object[] tokenValues)
      Deprecated. 
      Constructs the exception with a message and a list of parameters.
      CustomJSException(java.lang.String msg, java.lang.Throwable th)
      Deprecated. 
      Constructs the exception with a message and a reference to the originating exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      java.lang.Object[] getTokens()
      Deprecated. 
      Returns the list of parameters (tokens) used in the final localized message.
      • Methods inherited from class FESI.jslib.JSException

        getOriginatingException, printStackTrace, printStackTrace, printStackTrace
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • INVALID_JSOBJECT

        public static final java.lang.String INVALID_JSOBJECT
        Deprecated. 
        Constant representing a message key in a property file CTGIMO101E
        See Also:
        Constant Field Values
      • INVALID_CONTEXT

        public static final java.lang.String INVALID_CONTEXT
        Deprecated. 
        Constant representing a message key in a property file CTGIMO107E
        See Also:
        Constant Field Values
      • SCOPE_NOT_INT

        public static final java.lang.String SCOPE_NOT_INT
        Deprecated. 
        Constant representing a message key in a property file CTGIMO102E
        See Also:
        Constant Field Values
      • INVALID_SCOPE_VALUE

        public static final java.lang.String INVALID_SCOPE_VALUE
        Deprecated. 
        Constant representing a message key in a property file CTGIMO103E
        See Also:
        Constant Field Values
      • ENCRYPTION_DECRYPTION_ERROR

        public static final java.lang.String ENCRYPTION_DECRYPTION_ERROR
        Deprecated. 
        Constant representing a message key in a property file CTGIMO104E
        See Also:
        Constant Field Values
      • ILLEGAL_STATE_EXCEPTION_DIROBJECT_NULL

        public static final java.lang.String ILLEGAL_STATE_EXCEPTION_DIROBJECT_NULL
        Deprecated. 
        Constant representing a message key in a property file CTGIMO105E
        See Also:
        Constant Field Values
      • PROFILE_MISSING

        public static final java.lang.String PROFILE_MISSING
        Deprecated. 
        Constant representing a message key in a property file CTGIMO106E
        See Also:
        Constant Field Values
      • SCRIPT_OBJECT_CREATION_ERROR

        public static final java.lang.String SCRIPT_OBJECT_CREATION_ERROR
        Deprecated. 
        Constant representing a message key in a property file CTGIMO108E
        See Also:
        Constant Field Values
      • JAVA_OBJECT_CREATION_ERROR

        public static final java.lang.String JAVA_OBJECT_CREATION_ERROR
        Deprecated. 
        Constant representing a message key in a property file CTGIMO109E
        See Also:
        Constant Field Values
      • UNSUPPORTED_CONVERSION

        public static final java.lang.String UNSUPPORTED_CONVERSION
        Deprecated. 
        Constant representing a message key in a property file CTGIMO110E
        See Also:
        Constant Field Values
    • Constructor Detail

      • CustomJSException

        public CustomJSException(java.lang.String msg,
                                 java.lang.Throwable th)
        Deprecated. 
        Constructs the exception with a message and a reference to the originating exception. This is used primarily to wrap a possibly general root cause exception with a more contextual message. The message could be a key to a message in a resource bundle, or a raw display message.
        Parameters:
        msg - Key to a message in a resource bundle, or a raw display message summarizing the problem.
        th - Throwable object that was the root cause of the problem.
      • CustomJSException

        public CustomJSException(java.lang.String msg,
                                 java.lang.Object[] tokenValues)
        Deprecated. 
        Constructs the exception with a message and a list of parameters. The message could be a key to a message in a resource bundle, or a raw display message. If the message is a key, a list of parameters can be specified that will be inserted into the final message according to the format defined in the resource bundle.
        Parameters:
        msg - Key to a message in a resource bundle, or a raw display message summarizing the problem.
        tokenValues - Object arrray of parameters to be inserted into the final localized message.
    • Method Detail

      • getTokens

        public java.lang.Object[] getTokens()
        Deprecated. 
        Returns the list of parameters (tokens) used in the final localized message.
        Returns:
        Object array of parameters (tokens).