Class Status
The thread-local error slot every native call reports through.
public static class Status
- Inheritance
-
Status
- Inherited Members
Methods
LastError()
Reads the calling thread's most recent native error message.
public static string? LastError()
Returns
- string
The message, or
nullif none has been recorded.
Remarks
The native last-error slot is thread-local, so this must be read on the same thread that made the failing call.
ThrowIfError(PamojaStatus)
Throws a PamojaException when status is not OK.
public static void ThrowIfError(PamojaStatus status)
Parameters
statusPamojaStatusThe status returned by a native call.
Remarks
Call this on the same thread as the native call so the last-error message resolves.