stumpless 2.2.0
Loading...
Searching...
No Matches
ErrorId.hpp
Go to the documentation of this file.
1#ifndef __ERRORID_HPP
2#define __ERRORID_HPP
3
4#include <stumpless/error.h>
5
6namespace stumpless {
7
11 enum class ErrorId {
16 ADDRESS_FAILURE = STUMPLESS_ADDRESS_FAILURE,
20 ARGUMENT_EMPTY = STUMPLESS_ARGUMENT_EMPTY,
25 ARGUMENT_TOO_BIG = STUMPLESS_ARGUMENT_TOO_BIG,
29 DUPLICATE_ELEMENT = STUMPLESS_DUPLICATE_ELEMENT,
33 ELEMENT_NOT_FOUND = STUMPLESS_ELEMENT_NOT_FOUND,
37 FILE_OPEN_FAILURE = STUMPLESS_FILE_OPEN_FAILURE,
41 FILE_WRITE_FAILURE = STUMPLESS_FILE_WRITE_FAILURE,
45 FUNCTION_TARGET_FAILURE = STUMPLESS_FUNCTION_TARGET_FAILURE,
49 INDEX_OUT_OF_BOUNDS = STUMPLESS_INDEX_OUT_OF_BOUNDS,
53 INVALID_FACILITY = STUMPLESS_INVALID_FACILITY,
57 INVALID_ID = STUMPLESS_INVALID_ID,
61 INVALID_SEVERITY = STUMPLESS_INVALID_SEVERITY,
65 MEMORY_ALLOCATION_FAILURE = STUMPLESS_MEMORY_ALLOCATION_FAILURE,
69 NETWORK_PROTOCOL_UNSUPPORTED = STUMPLESS_NETWORK_PROTOCOL_UNSUPPORTED,
73 PARAM_NOT_FOUND = STUMPLESS_SOCKET_BIND_FAILURE,
77 SOCKET_CONNECT_FAILURE = STUMPLESS_SOCKET_CONNECT_FAILURE,
81 SOCKET_FAILURE = STUMPLESS_SOCKET_FAILURE,
85 SOCKET_SEND_FAILURE = STUMPLESS_SOCKET_SEND_FAILURE,
89 STREAM_WRITE_FAILURE = STUMPLESS_STREAM_WRITE_FAILURE,
93 TARGET_INCOMPATIBLE = STUMPLESS_TARGET_INCOMPATIBLE,
97 TARGET_UNSUPPORTED = STUMPLESS_TARGET_UNSUPPORTED,
101 TRANSPORT_PROTOCOL_UNSUPPORTED = STUMPLESS_TRANSPORT_PROTOCOL_UNSUPPORTED,
105 WINDOWS_EVENT_LOG_CLOSE_FAILURE = STUMPLESS_WINDOWS_EVENT_LOG_CLOSE_FAILURE,
109 WINDOWS_EVENT_LOG_OPEN_FAILURE = STUMPLESS_WINDOWS_EVENT_LOG_OPEN_FAILURE
110 };
111
112}
113
114#endif /* __ERRORID_HPP */
Definition AddressFailure.hpp:7
ErrorId
Unique identifiers for library errors.
Definition ErrorId.hpp:11
@ WINDOWS_EVENT_LOG_OPEN_FAILURE
Could not open the Windows Event Log.
@ SOCKET_FAILURE
Could not create a socket.
@ TARGET_UNSUPPORTED
The target type provided is unsupported by this implementation.
@ ARGUMENT_EMPTY
A required function parameter was NULL or empty.
@ PARAM_NOT_FOUND
Could not bind to a socket.
@ FILE_WRITE_FAILURE
Could not write to a file.
@ WINDOWS_EVENT_LOG_CLOSE_FAILURE
Could not close the Windows Event Log.
@ ADDRESS_FAILURE
A provided network address was not valid.
@ ELEMENT_NOT_FOUND
No element with the specified characteristics was found.
@ INVALID_SEVERITY
A provided severity code did not conform to RFC 5424.
@ INVALID_ID
A target or entry ID was not valid.
@ INDEX_OUT_OF_BOUNDS
A provided index was not in a valid range.
@ DUPLICATE_ELEMENT
A duplicate of an already existing element was detected in an Entry.
@ SOCKET_SEND_FAILURE
Could not send to a socket.
@ NETWORK_PROTOCOL_UNSUPPORTED
The given layer 3 protocol is not supported by this implementation.
@ STREAM_WRITE_FAILURE
Could not write to a stream.
@ FUNCTION_TARGET_FAILURE
A call to a function target's log function failed.
@ FILE_OPEN_FAILURE
Could not open a file.
@ TARGET_INCOMPATIBLE
The requested operation is not valid on the given target type.
@ MEMORY_ALLOCATION_FAILURE
A memory allocation or reallocation failed.
@ INVALID_FACILITY
A provided facility code did not conform to RFC 5424.
@ ARGUMENT_TOO_BIG
A provided argument was too big, for example to fit into a buffer target.
@ TRANSPORT_PROTOCOL_UNSUPPORTED
The given layer 4 protocol is not supported by this implementation.
@ SOCKET_CONNECT_FAILURE
Could not connect to a socket.