public class LeoError extends LeoObject
LeoObject.LeoType
Constructor and Description |
---|
LeoError() |
LeoError(Exception e) |
LeoError(int lineNumber) |
LeoError(LeoObject message) |
LeoError(LeoObject message,
int lineNumber) |
LeoError(String msg) |
LeoError(String msg,
int lineNumber) |
Modifier and Type | Method and Description |
---|---|
boolean |
$eq(LeoObject other)
Determines if it equals another object.
|
boolean |
$gt(LeoObject other)
If it's greater than to another object
|
boolean |
$lt(LeoObject other)
If it's less than to another object
|
void |
addStack(LeoError error) |
LeoObject |
clone() |
int |
getLineNumber() |
LeoObject |
getMessage() |
String |
getSourceFile() |
Object |
getValue() |
boolean |
isError() |
static LeoError |
read(LeoObject env,
DataInput in)
|
void |
setLineNumber(int lineNumber) |
void |
setSourceFile(String sourceFile) |
String |
toString() |
void |
write(DataOutput out)
Writes this object out
|
$add, $add, $add, $add, $band, $band, $band, $band, $bnot, $bor, $bor, $bor, $bor, $bsl, $bsl, $bsl, $bsl, $bsr, $bsr, $bsr, $bsr, $div, $div, $div, $div, $eq, $eq, $eq, $eq, $gt, $gt, $gt, $gte, $gte, $gte, $gte, $index, $index, $index, $index, $lt, $lt, $lt, $lte, $lte, $lte, $lte, $mod, $mod, $mod, $mod, $mul, $mul, $mul, $mul, $neg, $neq, $neq, $neq, $neq, $req, $sindex, $sub, $sub, $sub, $sub, $xor, $xor, $xor, $xor, as, as, asByte, asChar, asDouble, asFloat, asInt, asLong, asShort, call, call, call, call, call, call, call, compareTo, equals, getLocals, getNativeMember, getNativeMethod, getNativeMethod, getNumberOfArgs, getObject, getObject, getOuters, getScope, getType, getValue, hasNativeMethod, hasNativeMethod, hasObject, hasObject, hasVarargs, isArray, isAssignable, isBoolean, isClass, isFunction, isGenerator, isMap, isNamespace, isNativeClass, isNativeFunction, isNull, isNumber, isOfType, isOfType, isOfType, isOfType, isOuter, isScopedObject, isString, isTrue, isTrue, removeInterfaceMethods, rethrow, setObject, setObject, throwAttributeAccessError, throwAttributeError, throwAttributeError, throwClassNotFoundError, throwDivideByZeroError, throwIfError, throwMethodError, throwNativeMethodError, throwNotImplementedError, toJavaObject, toLeoString, valueOf, xcall, xcall, xcall, xcall, xcall, xcall, xcall, xgetObject, xgetObject
public LeoError(LeoObject message, int lineNumber)
public LeoError(LeoObject message)
message
- public LeoError(Exception e)
public LeoError(String msg)
public LeoError(String msg, int lineNumber)
public LeoError(int lineNumber)
public LeoError()
public void addStack(LeoError error)
public LeoObject getMessage()
public void setLineNumber(int lineNumber)
lineNumber
- the lineNumber to setpublic void setSourceFile(String sourceFile)
sourceFile
- the sourceFile to setpublic String getSourceFile()
public int getLineNumber()
public boolean $eq(LeoObject other)
LeoObject
public boolean $lt(LeoObject other)
LeoObject
public boolean $gt(LeoObject other)
LeoObject
public Object getValue()
public LeoObject clone()
public void write(DataOutput out) throws IOException
LeoObject
write
in class LeoObject
IOException
public static LeoError read(LeoObject env, DataInput in) throws IOException
in
- LeoObject
IOException
Copyright © 2010–2015. All rights reserved.