ShaderException.hx 386 B

123456789101112131415161718192021
  1. package hrt.shgraph;
  2. class ShaderException {
  3. public var msg : String;
  4. public var idBox : Int;
  5. public function new( msg, idBox) {
  6. this.msg = msg;
  7. this.idBox = idBox;
  8. }
  9. public function toString() {
  10. return 'ShaderException : ${msg} @${idBox}';
  11. }
  12. public static function t( msg : String, idBox : Int) : Dynamic {
  13. throw new ShaderException(msg, idBox);
  14. return null;
  15. }
  16. }