2022-08-19 16:25:42 +12:00
|
|
|
use Outrun.NIF, as: NIF
|
|
|
|
|
2022-08-04 17:38:00 +12:00
|
|
|
```doc
|
|
|
|
# Error
|
|
|
|
```
|
|
|
|
|
2022-08-07 16:20:33 +12:00
|
|
|
protocol Error, as: do
|
2022-08-04 17:38:00 +12:00
|
|
|
def message(self: Self): String
|
|
|
|
|
2022-08-07 16:20:33 +12:00
|
|
|
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
|