26 SML_ERRORCLASS_UNKNOWN = 0,
27 SML_ERRORCLASS_SUCCESS = 2,
28 SML_ERRORCLASS_RETRY = 3,
29 SML_ERRORCLASS_FATAL = 5
36 SML_ERROR_UNKNOWN = 0,
39 SML_IN_PROGRESS = 101,
47 SML_PROCESSING_ACCEPTED = 202,
49 SML_NON_AUTHORITATIVE = 203,
53 SML_RESET_CONTENT = 205,
55 SML_PARTIAL_CONTENT = 206,
57 SML_CONFLICT_MERGE = 207,
59 SML_CONFLICT_CLIENT_WIN = 208,
61 SML_CONFLICT_DUPLICATE = 209,
63 SML_DELETE_NO_ARCHIVE = 210,
65 SML_DELETE_NOT_FOUND = 211,
67 SML_AUTH_ACCEPTED = 212,
69 SML_CHUNK_ACCEPTED = 213,
71 SML_OPERATION_CANCELLED = 214,
73 SML_NOT_EXECUTED = 215,
75 SML_ATOMIC_ROLLBACK_OK = 216,
78 SML_ERROR_MULTIPLE_CHOICES = 300,
79 SML_ERROR_MOVED_PERMANENTLY = 301,
80 SML_ERROR_FOUND_RETRY = 302,
81 SML_ERROR_SEE_OTHER_RETRY = 303,
82 SML_ERROR_NOT_MODIFIED = 304,
83 SML_ERROR_USE_PROXY = 305,
86 SML_ERROR_BAD_REQUEST = 400,
87 SML_ERROR_AUTH_REJECTED = 401,
88 SML_ERROR_PAYMENT_NEEDED =402,
89 SML_ERROR_FORBIDDEN = 403,
90 SML_ERROR_NOT_FOUND = 404,
91 SML_ERROR_COMMAND_NOT_ALLOWED = 405,
92 SML_ERROR_UNSUPPORTED_FEATURE = 406,
93 SML_ERROR_AUTH_REQUIRED = 407,
94 SML_ERROR_RETRY_LATER = 417,
95 SML_ERROR_ALREADY_EXISTS = 418,
96 SML_ERROR_SIZE_MISMATCH = 424,
99 SML_ERROR_GENERIC = 500,
100 SML_ERROR_NOT_IMPLEMENTED = 501,
101 SML_ERROR_SERVICE_UNAVAILABLE = 503,
102 SML_ERROR_REQUIRE_REFRESH = 508,
103 SML_ERROR_SERVER_FAILURE = 511,
106 SML_ERROR_INTERNAL_IO_ERROR = 1501,
107 SML_ERROR_INTERNAL_TIMEOUT = 1503,
108 SML_ERROR_INTERNAL_FILE_NOT_FOUND = 1505,
109 SML_ERROR_INTERNAL_MISCONFIGURATION = 1506,
110 SML_ERROR_INTERNAL_NO_MEMORY = 1512
115 void smlErrorDeref(
SmlError **error);
125 #endif //_SML_ERROR_H_
const char * smlErrorPrint(SmlError **error)
Returns the message of the error.
SmlErrorType smlErrorGetType(SmlError **error)
Returns the type of the error.
void smlErrorUpdate(SmlError **error, const char *format,...)
Updates the error message.
void smlErrorDuplicate(SmlError **target, SmlError **source)
Duplicates the error into the target.
SmlErrorClass smlErrorGetClass(SmlError **error)
Gets the error class.
SmlBool smlErrorIsSet(SmlError **error)
Checks if the error is set.
void smlErrorSetType(SmlError **error, SmlErrorType type)
Sets the type of an error.
void smlErrorSet(SmlError **error, SmlErrorType type, const char *format,...)
Sets the error.