Table of Contents

Class NativeAPI.ErrorReporter

Namespace
Uralstech.UAI.LiteRTLM.Native
public static class NativeAPI.ErrorReporter
Inheritance
object
NativeAPI.ErrorReporter

Methods

litert_lm_clear_last_error()

Clears the last error recorded on the calling thread, resetting the error message to nint.Zero and the error code to Ok (0).

public static extern void litert_lm_clear_last_error()
See Also

litert_lm_get_last_error_code()

Returns the last error code recorded on the calling thread.

public static extern int litert_lm_get_last_error_code()

Returns

int

Remarks

The return type is int rather than StatusCode so that the ABI does not depend on the compiler's choice of underlying type for the enum, which keeps this function easy to bind from other languages.

See Also

litert_lm_get_last_error_message()

Returns the last error message recorded on the calling thread.

public static extern nint litert_lm_get_last_error_message()

Returns

nint

A null-terminated UTF-8 string containing the error description, or nint.Zero if no error has occurred on the calling thread or if the error state has been cleared.

See Also