AoSetError()

Updated: April 19, 2023

Write error information to an AOError_t structure

Synopsis:

#include <aoi.h>

void AoSetError(AOError_t *err, 
                int64_t error, 
                const char *type, 
                const char *description);

Arguments:

err
A pointer to memory for storing an AOError_t structure that will hold the error information.
error
The error code. The meaning of this value depends on the setting in type.
type
A string listing the error type. If this argument is NULL, errno is assumed.
description
An error message; this argument can be NULL.

Library:

libaoi.so

Description:

This function writes the given error data into an AOError_t structure at the specified memory location. This is a convenience function that lets your addon code automatically format error information when the client expects to receive it in that type of structure.

Classification:

QNX Neutrino