outrun/outrun-core/lib/error.outrun

15 lines
198 B
Text
Raw Normal View History

2022-08-22 11:30:39 +12:00
use Any
2022-08-19 16:25:42 +12:00
use Outrun.NIF, as: NIF
2022-08-22 11:30:39 +12:00
use String
2022-08-19 16:25:42 +12:00
2022-08-04 17:38:00 +12:00
```doc
# Error
```
protocol Error, as: do
2022-08-04 17:38:00 +12:00
def message(self: Self): String
defs raise(error: Error): Any, as: do
2022-08-19 16:25:42 +12:00
NIF.error_raise(error)
2022-08-04 17:38:00 +12:00
end
end