Aranya
Loading...
Searching...
No Matches
AranyaExtError Struct Reference

Extended error information. More...

#include <aranya-client.h>

Related Symbols

(Note that these are not member symbols.)

AranyaError aranya_ext_error_init (struct AranyaExtError *out)
 Initializes AranyaExtError.
 
AranyaError aranya_ext_error_init_ext (struct AranyaExtError *out, struct AranyaExtError *__ext_err)
 Initializes AranyaExtError.
 
AranyaError aranya_ext_error_cleanup (struct AranyaExtError *ptr)
 Releases any resources associated with ptr.
 
AranyaError aranya_ext_error_cleanup_ext (struct AranyaExtError *ptr, struct AranyaExtError *__ext_err)
 Releases any resources associated with ptr.
 
AranyaError aranya_ext_error_msg (const struct AranyaExtError *err, char *msg, size_t *msg_len)
 Copies the extended error's message into msg.
 
AranyaError aranya_ext_error_msg_ext (const struct AranyaExtError *err, char *msg, size_t *msg_len, struct AranyaExtError *__ext_err)
 Copies the extended error's message into msg.
 

Detailed Description

Extended error information.

Friends And Related Symbol Documentation

◆ aranya_ext_error_cleanup()

AranyaError aranya_ext_error_cleanup ( struct AranyaExtError * ptr)
related

Releases any resources associated with ptr.

ptr must either be null or initialized by aranya_ext_error_init.

◆ aranya_ext_error_cleanup_ext()

AranyaError aranya_ext_error_cleanup_ext ( struct AranyaExtError * ptr,
struct AranyaExtError * __ext_err )
related

Releases any resources associated with ptr.

ptr must either be null or initialized by aranya_ext_error_init.

◆ aranya_ext_error_init()

AranyaError aranya_ext_error_init ( struct AranyaExtError * out)
related

Initializes AranyaExtError.

When no longer needed, out's resources must be released with its cleanup routine.

◆ aranya_ext_error_init_ext()

AranyaError aranya_ext_error_init_ext ( struct AranyaExtError * out,
struct AranyaExtError * __ext_err )
related

Initializes AranyaExtError.

When no longer needed, out's resources must be released with its cleanup routine.

◆ aranya_ext_error_msg()

AranyaError aranya_ext_error_msg ( const struct AranyaExtError * err,
char * msg,
size_t * msg_len )
related

Copies the extended error's message into msg.

If msg_len is large enough to fit the entire message, including the trailing null byte, it updates msg_len with the length of the message and copies the message into msg.

Otherwise, if msg_len is not large enough to fit the entire message, including the trailing null byte, it updates msg_len with the length of the message and returns ARANYA_ERROR_BUFFER_TOO_SMALL.

Parameters
errthe error to get a message for AranyaExtError.
msgbuffer to copy error message into.
msg_lenlength of the message buffer.

◆ aranya_ext_error_msg_ext()

AranyaError aranya_ext_error_msg_ext ( const struct AranyaExtError * err,
char * msg,
size_t * msg_len,
struct AranyaExtError * __ext_err )
related

Copies the extended error's message into msg.

If msg_len is large enough to fit the entire message, including the trailing null byte, it updates msg_len with the length of the message and copies the message into msg.

Otherwise, if msg_len is not large enough to fit the entire message, including the trailing null byte, it updates msg_len with the length of the message and returns ARANYA_ERROR_BUFFER_TOO_SMALL.

Parameters
errthe error to get a message for AranyaExtError.
msgbuffer to copy error message into.
msg_lenlength of the message buffer.

The documentation for this struct was generated from the following file: