Throwable.hx 994 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package java.lang;
  2. import java.NativeArray;
  3. /**
  4. * ...
  5. * @author waneck
  6. */
  7. extern class Throwable
  8. {
  9. function new(message:String, cause:Throwable):Void;
  10. function fillInStackTrace():Throwable;
  11. function getCause():Throwable;
  12. function getLocalizedMessage():String;
  13. function getMessage():String;
  14. function getStackTrace():NativeArray<StackTraceElement>;
  15. function setStackTrace(stackTrace:NativeArray<StackTraceElement>):Void;
  16. function initCause(cause:Throwable):Throwable;
  17. function printStackTrace():Void;
  18. }
  19. extern class Exception extends Throwable { }
  20. extern class RuntimeException extends Exception { }
  21. extern class Error extends Throwable { }
  22. extern class StackTraceElement
  23. {
  24. function new(declaringClass:String, methodName:String, fileName:String, lineNumber:Int):Void;
  25. function getClassName():String;
  26. function getFileName():String;
  27. function getLineNumber():Int;
  28. function getMethodName():String;
  29. function isNativeMethod():Bool;
  30. }