Files
fx/core/error.h

38 lines
867 B
C
Raw Normal View History

2026-03-16 10:35:43 +00:00
#ifndef _FX_ERROR_H_
#define _FX_ERROR_H_
2025-07-28 22:16:26 +01:00
2026-03-16 10:35:43 +00:00
#include <fx/core/error.h>
#include <fx/core/queue.h>
2025-07-28 22:16:26 +01:00
2026-03-16 10:35:43 +00:00
struct fx_error_stack_frame {
fx_queue_entry f_entry;
2025-07-28 22:16:26 +01:00
const char *f_file;
unsigned int f_line_number;
const char *f_function;
};
2026-03-16 10:35:43 +00:00
struct fx_error_submsg {
fx_queue_entry msg_entry;
fx_error_submsg_type msg_type;
2025-07-28 22:16:26 +01:00
char *msg_content;
2026-03-16 10:35:43 +00:00
const struct fx_error_msg *msg_msg;
struct fx_error_template_parameter msg_params[FX_ERROR_TEMPLATE_PARAMETER_MAX];
2025-07-28 22:16:26 +01:00
};
2026-03-16 10:35:43 +00:00
struct fx_error {
const struct fx_error_vendor *err_vendor;
fx_error_status_code err_code;
2025-07-28 22:16:26 +01:00
2026-03-16 10:35:43 +00:00
const struct fx_error_definition *err_def;
const struct fx_error_msg *err_msg;
2025-07-28 22:16:26 +01:00
char *err_description;
2026-03-16 10:35:43 +00:00
struct fx_error_template_parameter err_params[FX_ERROR_TEMPLATE_PARAMETER_MAX];
2025-07-28 22:16:26 +01:00
2026-03-16 10:35:43 +00:00
struct fx_queue err_submsg;
struct fx_queue err_stack;
fx_queue_entry err_entry;
struct fx_error *err_caused_by;
2025-07-28 22:16:26 +01:00
};
#endif