Exception.hx 731 B

12345678910111213141516171819
  1. package php;
  2. extern class Exception {
  3. public function new(?message : String, ?code : Int) : Void;
  4. private var message : String;
  5. private var code : Int;
  6. private var file : String;
  7. private var line : Int;
  8. public function getMessage() : String; // message of the exception
  9. public function getCode() : Int; // code of the exception
  10. public function getFile() : String; // source filename
  11. public function getLine() : Int; // source line
  12. public function getTrace() : Array<String>; // an array of the backtrace()
  13. public function getTraceAsString() : String; // formated string of trace
  14. public function __toString() : String; // formated string for display
  15. }