outrun/outrun-core/lib/error.outrun

15 lines
197 B
Text
Raw Normal View History

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