2022-08-22 11:30:39 +12:00
|
|
|
use Any
|
2022-09-15 10:14:18 +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
|
|
|
|
```
|
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-09-25 14:29:37 +13:00
|
|
|
def raise(error: Error): Any, as: do
|
2022-09-15 10:14:18 +12:00
|
|
|
Nif.error_raise(error)
|
2022-08-04 17:38:00 +12:00
|
|
|
end
|
|
|
|
end
|