Package Name: java.lang.throwable

Return to: Package List


with java.lang; use java.lang;
with java.lang.String; use java.lang.String;
with java.io.PrintStream; use java.io.PrintStream;

package java.lang.Throwable is
    type Throwable_Obj is new Object with null record;

    type Throwable_Ptr is access all Throwable_Obj'Class;
    procedure init_Throwable(Obj : access Throwable_Obj'Class);

    function new_Throwable(Obj : Throwable_Ptr := null) return Throwable_Ptr;
    function new_Throwable(
        message : String_Ptr;
        Obj : Throwable_Ptr := null)

      return Throwable_Ptr;

    function getMessage(Obj : access Throwable_Obj) return String_Ptr;

    function toString(Obj : access Throwable_Obj) return String_Ptr;

    procedure printStackTrace(Obj : access Throwable_Obj);
    procedure printStackTrace(Obj : access Throwable_Obj;

        s : PrintStream_Ptr);

    function fillInStackTrace(Obj : access Throwable_Obj) return Throwable_Ptr;
    pragma Import(Java, getMessage);
    pragma Import(Java, printStackTrace);
    pragma Import(Java, fillInStackTrace);

    pragma Import(Java, toString);
    pragma Import(Java_Constructor, init_Throwable);

    pragma Import(Java_Constructor, new_Throwable);
end java.lang.Throwable;