#[repr(C)]pub struct svn_error_t {
pub apr_err: apr_status_t,
pub message: *const c_char,
pub child: *mut svn_error_t,
pub pool: *mut apr_pool_t,
pub file: *const c_char,
pub line: c_long,
}
Expand description
Subversion error object.
Defined here, rather than in svn_error.h, to avoid a recursive @#include situation.
Fields§
§apr_err: apr_status_t
APR error value; possibly an SVN_ custom error code (see `svn_error_codes.h’ for a full listing).
message: *const c_char
Details from the producer of error.
Note that if this error was generated by Subversion’s API, you’ll probably want to use svn_err_best_message() to get a single descriptive string for this error chain (see the @a child member) or svn_handle_error2() to print the error chain in full. This is because Subversion’s API functions sometimes add many links to the error chain that lack details (used only to produce virtual stack traces). (Use svn_error_purge_tracing() to remove those trace-only links from the error chain.)
child: *mut svn_error_t
Pointer to the error we “wrap” (may be @c NULL). Via this member, individual error object can be strung together into an “error chain”.
pool: *mut apr_pool_t
The pool in which this error object is allocated. (If Subversion’s APIs are used to manage error chains, then this pool will contain the whole error chain of which this object is a member.)
file: *const c_char
Source file where the error originated (iff @c SVN_DEBUG; undefined otherwise).
line: c_long
Source line where the error originated (iff @c SVN_DEBUG; undefined otherwise).