Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jcontrol.lang
Class ThrowableExt

    java.lang.Object
      jcontrol.lang.ThrowableExt

    public class ThrowableExt

extends Object

Extended functionality for the base class for exceptions and errors. For compatibility reasons not in `Throwable`.

Constructor Summary
`ThrowableExt()`

Method Summary
`static String` | `getClassName(Throwable throwable)` Returns the name of the class of the throwable-object.
`static int[]` | `getOffsets(Throwable throwable)` Returns the offsets of error-positions in archive to build a stacktrace.

Methods inherited from class java.lang.Object
`clone, equals, getClass, notifyAll, toString, wait`

Constructor Detail

### ThrowableExt

    public ThrowableExt()

Method Detail

### getOffsets

    public static int[] getOffsets(Throwable throwable)

  Returns the offsets of error-positions in archive to build a stacktrace. Specials of the 16bit VM: Thus an offset-value is always 32bit, but a primitive integer is 16bit, the returned integer array length is 2 x number of existing offsets. So the value[n] is the high-word and the value[n+1] is the low-word of the offset.

  Parameters:
    `throwable` - - the throwable object from which the offset should get
  Returns:
    array of offsets (for building a stacktrace)

### getClassName

    public static String getClassName(Throwable throwable)

  Returns the name of the class of the throwable-object.

  Parameters:
    `throwable` - - the throwable object from which the name should get
  Returns:
    name of exception

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD