TestGame/addons/reactivex/abc/throwable.gd
2024-12-27 21:00:07 +01:00

15 lines
306 B
GDScript

class_name ThrowableBase
## Interface for throwable objects
##
## Objects that implement this interface can be used within a try-catch-
## structure.
func throw(_default = null) -> Variant:
NotImplementedError.raise()
return null
func tags() -> Array[String]:
NotImplementedError.raise()
return []