Files
hank/hank-godot/scripts/haxe_PosException.gd
Nat Quayle Nelson 8caad092be
Some checks failed
/ test (push) Failing after 8s
Generate GDScript
2025-10-30 19:19:36 -05:00

22 lines
585 B
GDScript

extends haxe_Exception
class_name haxe_exceptions_PosException
var posInfos: Variant
func _init(message: String, previous = null, pos = null) -> void:
super(message, previous)
if (pos == null):
self.posInfos = {
"fileName": "(unknown)",
"lineNumber": 0,
"className": "(unknown)",
"methodName": "(unknown)"
}
else:
self.posInfos = pos
func toString() -> String:
return "" + super.toString() + " in " + self.posInfos.get("className") + "." + self.posInfos.get("methodName") + " at " + self.posInfos.get("fileName") + ":" + str(self.posInfos.get("lineNumber"))