38 lines
867 B
C
38 lines
867 B
C
#ifndef _FX_ERROR_H_
|
|
#define _FX_ERROR_H_
|
|
|
|
#include <fx/core/error.h>
|
|
#include <fx/core/queue.h>
|
|
|
|
struct fx_error_stack_frame {
|
|
fx_queue_entry f_entry;
|
|
const char *f_file;
|
|
unsigned int f_line_number;
|
|
const char *f_function;
|
|
};
|
|
|
|
struct fx_error_submsg {
|
|
fx_queue_entry msg_entry;
|
|
fx_error_submsg_type msg_type;
|
|
char *msg_content;
|
|
const struct fx_error_msg *msg_msg;
|
|
struct fx_error_template_parameter msg_params[FX_ERROR_TEMPLATE_PARAMETER_MAX];
|
|
};
|
|
|
|
struct fx_error {
|
|
const struct fx_error_vendor *err_vendor;
|
|
fx_error_status_code err_code;
|
|
|
|
const struct fx_error_definition *err_def;
|
|
const struct fx_error_msg *err_msg;
|
|
char *err_description;
|
|
struct fx_error_template_parameter err_params[FX_ERROR_TEMPLATE_PARAMETER_MAX];
|
|
|
|
struct fx_queue err_submsg;
|
|
struct fx_queue err_stack;
|
|
fx_queue_entry err_entry;
|
|
struct fx_error *err_caused_by;
|
|
};
|
|
|
|
#endif
|