1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-08 15:56:04 +00:00
Funkin/source/io/newgrounds/objects/Error.hx
2020-11-01 14:16:22 -05:00

21 lines
350 B
Haxe

package io.newgrounds.objects;
class Error {
public var code(default, null):Int;
public var message(default, null):String;
public function new (message:String, code:Int = 0) {
this.message = message;
this.code = code;
}
public function toString():String {
if (code > 0)
return '#$code - $message';
return message;
}
}