[nostalgia/developer-handbook] Update error handling to reflect the enablement of exceptions for GBA build
This commit is contained in:
parent
3e78ec3fe5
commit
3936756b36
@ -162,11 +162,9 @@ The Ox way of doing things is the Olympic way of doing things.
|
|||||||
|
|
||||||
### Error Handling
|
### Error Handling
|
||||||
|
|
||||||
The GBA build has exceptions disabled.
|
Instead of throwing exceptions, generally try to use
|
||||||
Instead of throwing exceptions, all engine code should return
|
[ox::Errors](deps/ox/ox-docs.md#error-handling) for error reporting,
|
||||||
[ox::Errors](deps/ox/ox-docs.md#error-handling) for error reporting.
|
but exceptions may be used where they make sense.
|
||||||
For the sake of consistency, try to stick to ```ox::Error``` in non-engine code
|
|
||||||
as well, but non-engine code is free to use exceptions when they make sense.
|
|
||||||
|
|
||||||
Exceptions should generally just use ```OxException```, which is bascially an
|
Exceptions should generally just use ```OxException```, which is bascially an
|
||||||
exception form of ```ox::Error```.
|
exception form of ```ox::Error```.
|
||||||
|
Loading…
Reference in New Issue
Block a user