anvil.core
Class AnyThrowable

java.lang.Object
  |
  +--anvil.core.Any
        |
        +--anvil.core.AnyAbstractClass
              |
              +--anvil.core.AnyThrowable
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
Throwables.AccessDenied, Throwables.AcquireError, Throwables.AssertFailed, Throwables.BadState, Throwables.ClassNotFound, Throwables.CorruptedSerialization, Throwables.ImportError, Throwables.InternalError, Throwables.Interrupted, Throwables.IOError, Throwables.JavaError, Throwables.MalformedPattern, Throwables.OperationFailed, Throwables.SQLError, Throwables.TypeError, Throwables.TypeError.AccessError, Throwables.TypeError.AttributeError, Throwables.TypeError.CallError, Throwables.TypeError.IndexError, Throwables.TypeError.InstantiationError, Throwables.TypeError.NoInstance, Throwables.TypeError.NoSuchClass, Throwables.TypeError.NoSuchEntity, Throwables.TypeError.NoSuchFunction, Throwables.TypeError.NoSuchMember, Throwables.TypeError.NoSuchMethod, Throwables.TypeError.NotEnoughParameters, Throwables.XMLError

public class AnyThrowable
extends AnyAbstractClass

class AnyThrowable


Field Summary
static NativeClass _class
           
static java.lang.Object[] init
           
 
Fields inherited from class anvil.core.Any
ARRAY0, DOUBLE_MINUS_ONE, DOUBLE_ONE, DOUBLE_ZERO, EMPTY_STRING, EMPTY_TUPLE, FALSE, INF, IS_ARRAY, IS_BINARY, IS_BOOLEAN, IS_BUFFER, IS_CLASS, IS_DOUBLE, IS_ENUMERATION, IS_INF, IS_INT, IS_LIST, IS_MAP, IS_NEG_INF, IS_NULL, IS_PATTERN, IS_RANGE, IS_STRING, IS_TUPLE, IS_UNDEFINED, MINUS_ONE, NAN, NEG_INF, NULL, ONE, p_compareTo, p_each, p_equals, p_pipe, p_select, THREE, TRUE, TWO, UNDEFINED, ZERO
 
Constructor Summary
AnyThrowable()
           
AnyThrowable(Context context)
           
AnyThrowable(Context context, java.lang.String message)
           
AnyThrowable(Context context, java.lang.String message, ErrorListener listener)
           
 
Method Summary
protected  void _clone(Any from)
           
protected  void _copy(Any from)
           
protected  void _serialize(Serializer serializer)
           
protected  void _unserialize(Unserializer unserializer)
           
 ClassType classOf()
          Returns the type of this Any.
 void fillInStackTrace(int index, Module module, Any instance, Function method)
           
 void fillInStackTrace(Module module, int line, Any instance, Function method)
           
 void fillInStackTrace(StackFrame frame)
           
protected  Any getErrors()
           
 Any init(Context context, java.lang.String message)
           
 Any m_fill(Context context)
           
 Any m_fillInStackTrace(Context context)
           
 Any m_getErrors()
           
 Any m_getMessage()
           
 Any m_getStackTrace(Context context)
           
 Any m_toString()
           
 java.lang.Object toObject()
          Gets the contained value as java.lang.Object.
 java.lang.String toString()
          Converts contained value into String.
 
Methods inherited from class anvil.core.AnyAbstractClass
doSerialize, isMutable, serialize, serializeObject, toBoolean, typeOf, unserialize, unserializeObject
 
Methods inherited from class anvil.core.Any
_invoke, _invoke, _invoke, _invoke, _invoke, _invoke, _wakeup, add, classNameOf, clone, coerce, compare, compareTo, concat, contains, copy, create, create, create, create, create, create, create, create, create, create, create, create, create, create, decrease, deleteAttribute, deleteReference, divide, equals, execute, execute, execute, execute, execute, execute, getAttribute, getRef, getReference, has, increase, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, isArray, isBinary, isBoolean, isBuffer, isDefined, isDouble, isInstanceOf, isInt, isIterator, isList, isMap, isNull, isPattern, isRange, isRef, isSequence, isString, isTuple, isUndefined, iterator, m_clone, m_compareTo, m_copy, m_each, m_equals, m_hashCode, m_pipe, m_select, m_toBoolean, minus, modulo, multiply, not, plus, setAttribute, setRef, setReference, setReference, sizeOf, subtract, toAnvil, toAnvil, toAnyBoolean, toAnyDouble, toAnyInt, toAnyString, toArray, toBinary, toBuffer, toByte, toChar, toCode, toDouble, toInt, toList, toLong, toMap, toPattern, toRange, toTuple, type
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

init

public static java.lang.Object[] init

_class

public static final NativeClass _class
Constructor Detail

AnyThrowable

public AnyThrowable()

AnyThrowable

public AnyThrowable(Context context)

AnyThrowable

public AnyThrowable(Context context,
                    java.lang.String message)

AnyThrowable

public AnyThrowable(Context context,
                    java.lang.String message,
                    ErrorListener listener)
Method Detail

init

public Any init(Context context,
                java.lang.String message)

_serialize

protected void _serialize(Serializer serializer)
                   throws java.io.IOException
Overrides:
_serialize in class Any
java.io.IOException

_unserialize

protected void _unserialize(Unserializer unserializer)
                     throws UnserializationException
Overrides:
_unserialize in class Any
UnserializationException

_clone

protected void _clone(Any from)
Overrides:
_clone in class Any

_copy

protected void _copy(Any from)
Overrides:
_copy in class Any

classOf

public ClassType classOf()
Description copied from class: Any
Returns the type of this Any.

Specified by:
classOf in class AnyAbstractClass

toString

public java.lang.String toString()
Description copied from class: Any
Converts contained value into String.

Overrides:
toString in class AnyAbstractClass
Returns:
Value as String.

toObject

public java.lang.Object toObject()
Description copied from class: Any
Gets the contained value as java.lang.Object.

Overrides:
toObject in class Any
Returns:
Value as Object.

fillInStackTrace

public void fillInStackTrace(int index,
                             Module module,
                             Any instance,
                             Function method)

fillInStackTrace

public void fillInStackTrace(Module module,
                             int line,
                             Any instance,
                             Function method)

fillInStackTrace

public void fillInStackTrace(StackFrame frame)

getErrors

protected Any getErrors()

m_toString

public Any m_toString()
Overrides:
m_toString in class Any

m_fillInStackTrace

public Any m_fillInStackTrace(Context context)

m_fill

public Any m_fill(Context context)

m_getMessage

public Any m_getMessage()

m_getStackTrace

public Any m_getStackTrace(Context context)

m_getErrors

public Any m_getErrors()