Table of Contents

Class Status

Namespace
Pamoja.Native.Interop
Assembly
Pamoja.Native.dll

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 null if 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

status PamojaStatus

The status returned by a native call.

Remarks

Call this on the same thread as the native call so the last-error message resolves.