-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathate_errors.h
36 lines (29 loc) · 1.28 KB
/
ate_errors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef ATE_ERRORS_H
#define ATE_ERRORS_H
/**
* @defgroup Error_Functions Centralized Error Reporting
*
* All error reporting should go through these functions. This
* makes it possible for a future version to make error-reporting
* optional.
* @{
*/
void save_to_error_shell_var(const char *str);
void ate_register_error(const char *format, ...);
void ate_register_unknown_option(char option);
void ate_register_option_missing_argument(char option);
void ate_register_variable_not_found(const char *name);
void ate_register_function_not_found(const char *name);
void ate_register_variable_wrong_type(const char *name, const char *desired_type);
void ate_register_argument_wrong_type(const char *name, const char *desired_type);
void ate_register_empty_table(const char *handle_name);
void ate_register_corrupt_table(void);
void ate_register_not_an_int(const char *str, const char *action);
void ate_register_invalid_row_index(int requested, int available);
void ate_register_invalid_row_size(int row_size, int el_count);
void ate_register_wrong_report_type(char option, const char *action);
void ate_register_missing_argument(const char *name, const char *action);
void ate_register_failed_to_create(const char *name);
void ate_register_unexpected_error(const char *doing);
/** @} */
#endif