public final class UnknownKeyException extends InteropException
UnknownKeyException.getUnknownKey(),
Interop,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
static UnknownKeyException |
create(Object unknownKey)
Creates an
UnknownKeyException to indicate that a key is missing in the hash object. |
static UnknownKeyException |
create(Object unknownKey,
Throwable cause)
Creates an
UnknownKeyException to indicate that a key is missing in the hash object. |
String |
getMessage() |
Object |
getUnknownKey()
Returns the hash key that could not be accessed.
|
fillInStackTrace, getCauseaddSuppressed, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic String getMessage()
getMessage in class Throwablepublic Object getUnknownKey()
public static UnknownKeyException create(Object unknownKey)
UnknownKeyException to indicate that a key is missing in the hash object.unknownKey - the key that could not be accessedpublic static UnknownKeyException create(Object unknownKey, Throwable cause)
UnknownKeyException to indicate that a key is missing in the hash object.
In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause.
unknownKey - the key that could not be accessedcause - the guest language exception that caused the error