Aranya
|
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 . | |
Extended error information.
|
related |
Releases any resources associated with ptr
.
ptr
must either be null or initialized by aranya_ext_error_init
.
|
related |
Releases any resources associated with ptr
.
ptr
must either be null or initialized by aranya_ext_error_init
.
|
related |
Initializes AranyaExtError
.
When no longer needed, out
's resources must be released with its cleanup routine.
|
related |
Initializes AranyaExtError
.
When no longer needed, out
's resources must be released with its cleanup routine.
|
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
.
err | the error to get a message for AranyaExtError . |
msg | buffer to copy error message into. |
msg_len | length of the message buffer. |
|
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
.
err | the error to get a message for AranyaExtError . |
msg | buffer to copy error message into. |
msg_len | length of the message buffer. |