|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.data.Value
oscript.data.OObject
oscript.data.OException
oscript.data.OJavaException
This class wraps a java exception object. At some point, we could perhaps make this a script type...
Field Summary | |
static java.lang.String[] |
MEMBER_NAMES
|
static java.lang.String |
PARENT_TYPE_NAME
|
static Value |
TYPE
The type object for an instance of JavaException. |
static java.lang.String |
TYPE_NAME
|
Fields inherited from class oscript.data.OObject |
EMPTY_EXPR_LIST_EVALUATOR |
Fields inherited from class oscript.data.Value |
DEBUG, NULL, UNDEFINED |
Constructor Summary | |
OJavaException(MemberTable args)
Class Constructor. |
|
OJavaException(java.lang.Throwable t)
Class Constructor. |
|
OJavaException(java.lang.Throwable t,
Value ot)
|
Method Summary | |
java.lang.Object |
castToJavaObject()
Convert this object to a native java Object value. |
Value |
getJavaException()
|
Value |
getMember(int id,
boolean exception)
Get a member of this object. |
java.lang.Object |
getMonitor()
Return the object used for implementing synchronized. |
Value |
getType()
Get the type of this object. |
static PackagedScriptObjectException |
makeJavaExceptionWrapper(java.lang.Throwable t)
|
java.util.Set |
memberSet()
Returns the names of the members of this object. |
Methods inherited from class oscript.data.OException |
castToString, getArg0, getMessage, getTypeImpl, preserveStackFrame, stackFrameIterator |
Methods inherited from class oscript.data.OObject |
populateMemberSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Value TYPE
public static final java.lang.String PARENT_TYPE_NAME
public static final java.lang.String TYPE_NAME
public static final java.lang.String[] MEMBER_NAMES
Constructor Detail |
public OJavaException(java.lang.Throwable t)
t
- a java exceptionpublic OJavaException(java.lang.Throwable t, Value ot)
public OJavaException(MemberTable args)
BuiltinType
instance.
args
- arguments to this constructor
PackagedScriptObjectException(Exception)
- if wrong number of argsMethod Detail |
public static final PackagedScriptObjectException makeJavaExceptionWrapper(java.lang.Throwable t)
public java.lang.Object getMonitor()
Value
JavaObjectWrapper
.
getMonitor
in class Value
public java.lang.Object castToJavaObject()
Value
Object
value.
castToJavaObject
in class Value
public Value getMember(int id, boolean exception) throws PackagedScriptObjectException
OObject
getMember
in class OObject
PackagedScriptObjectException
public Value getType()
Value
getType
in class Value
public final java.util.Set memberSet()
Value
memberSet
in class Value
public Value getJavaException()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |