[nostalgia/developer-handbook] Update error handling section
All checks were successful
Build / build (push) Successful in 1m8s
All checks were successful
Build / build (push) Successful in 1m8s
This commit is contained in:
@@ -163,10 +163,11 @@ The Ox way of doing things is the Olympic way of doing things.
|
|||||||
### Error Handling
|
### Error Handling
|
||||||
|
|
||||||
Instead of throwing exceptions, generally try to use
|
Instead of throwing exceptions, generally try to use
|
||||||
[ox::Errors](deps/ox/ox-docs.md#error-handling) for error reporting,
|
[ox::Error](deps/ox/ox-docs.md#error-handling) for error reporting.
|
||||||
but exceptions may be used where they make sense.
|
Exceptions may be used where errors-as-values will not work, but catch them and
|
||||||
|
convert them to ```ox::Error``` as soon as possible.
|
||||||
|
|
||||||
Exceptions should generally just use ```OxException```, which is bascially an
|
Exceptions should generally just use ```ox::Exception```, which is basically an
|
||||||
exception form of ```ox::Error```.
|
exception form of ```ox::Error```.
|
||||||
|
|
||||||
### File I/O
|
### File I/O
|
||||||
|
|||||||
Reference in New Issue
Block a user