LuvException.hx 418 B

12345678910111213141516171819
  1. package eval.luv;
  2. /**
  3. Exceptions thrown by functions in `eval.luv` package.
  4. **/
  5. class LuvException extends haxe.Exception {
  6. /**
  7. The error.
  8. **/
  9. public final error:UVError;
  10. /**
  11. Instantiates an error with given message and position.
  12. **/
  13. public function new(error:UVError, ?message:String, ?previous:haxe.Exception) {
  14. super(message == null ? error.toString() : message, previous);
  15. this.error = error;
  16. }
  17. }