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
- public class CustomJSException
- extends 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:
- Serialized Form
Constructor Summary |
CustomJSException(java.lang.String msg,
java.lang.Object[] tokenValues)
Constructs the exception with a message and a list of parameters. |
CustomJSException(java.lang.String msg,
java.lang.Throwable th)
Constructs the exception with a message and a reference to the
originating exception. |
Method Summary |
java.lang.Object[] |
getTokens()
Returns the list of parameters (tokens) used in the final localized
message. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INVALID_JSOBJECT
public static final java.lang.String INVALID_JSOBJECT
INVALID_CONTEXT
public static final java.lang.String INVALID_CONTEXT
SCOPE_NOT_INT
public static final java.lang.String SCOPE_NOT_INT
INVALID_SCOPE_VALUE
public static final java.lang.String INVALID_SCOPE_VALUE
ENCRYPTION_DECRYPTION_ERROR
public static final java.lang.String ENCRYPTION_DECRYPTION_ERROR
ILLEGAL_STATE_EXCEPTION_DIROBJECT_NULL
public static final java.lang.String ILLEGAL_STATE_EXCEPTION_DIROBJECT_NULL
PROFILE_MISSING
public static final java.lang.String PROFILE_MISSING
SCRIPT_OBJECT_CREATION_ERROR
public static final java.lang.String SCRIPT_OBJECT_CREATION_ERROR
JAVA_OBJECT_CREATION_ERROR
public static final java.lang.String JAVA_OBJECT_CREATION_ERROR
UNSUPPORTED_CONVERSION
public static final java.lang.String UNSUPPORTED_CONVERSION
- Constant for the error message indicating an invalid conversion
between JSObjects and Java Objects.
CustomJSException
public CustomJSException(java.lang.String msg,
java.lang.Throwable th)
- 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)
- 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.
getTokens
public java.lang.Object[] getTokens()
- Returns the list of parameters (tokens) used in the final localized
message.
- Returns:
- Object array of parameters (tokens).