-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patherror_codes.h
41 lines (37 loc) · 1010 Bytes
/
error_codes.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
37
38
39
40
#pragma once
#include <string>
enum ErrorCode {
SUCCESS_CODE = 0,
ERROR_INVALID_FUNCTION,
ERROR_FILE_NOT_FOUND,
ERROR_ACCESS_DENIED,
ERROR_CANNOT_OPEN_FILE,
ERROR_PATH_NOT_FOUND,
ERROR_INVALID_OPTION,
ERROR_CANNOT_CLOSE_FILE_SYSTEM,
ERROR_CANNOT_MOVE_FILE,
ERROR_CANNOT_CHANGE_PERMISSIONS,
ERROR_CANNOT_OPEN_DIRECTORY,
ERROR_CANNOT_COMPUTE_HASH,
ERROR_INVALID_RANGE,
ERROR_CANNOT_WRITE_FILE,
ERROR_YARA_LIBRARY,
ERROR_CANNOT_REMOVE_FILE,
ERROR_CANNOT_SEND_EMAIL,
ERROR_IPTABLES_COMMAND,
ERROR_LOG_OPERATION_FAILED,
ERROR_CANNOT_FIND_INTERFACE,
ERROR_CANNOT_OPEN_DEVICE,
ERROR_DATABASE_GENERAL,
ERROR_INVALID_CHOICE,
ERROR_CANNOT_DISPLAY,
ERROR_DETECTED_MALICIOUS_ACTIVITY,
ERROR_CANNOT_CAPTURE_PACKETS,
ERROR_CANNOT_ANALYZE_PACKETS,
ERROR_CANNOT_PROMPT_USER,
ERROR_CANNOT_BLOCK_IP,
ERROR_INVALID_INPUT,
ERROR_SEND_FAILED,
ERROR_UNKNOWN
};
std::string GetErrorMessage(int code);