-
Notifications
You must be signed in to change notification settings - Fork 2
Error Handling
mini edited this page Aug 29, 2025
·
4 revisions
Every function returns an error code, indicating a specific or unspecific error. Optionally, extended information in a string format can be retrieved.
Every CLR-exception is catched at the FFI-boundary and turned into an "error" in the context of osu-natives' error handling. The error code will be Failure (127), and the error message will contain the exceptions' message and stack trace.
Functions may also return specific error codes, optionally including additional information in an error message.
The error message can be retrieved using this function:
uint8_t* ErrorHandler_GetLastMessage(void);The error codes and their meaning can be found here.