Go to the documentation of this file.
21 #include <azure/core/_az_cfg_prefix.h>
25 _az_FACILITY_CORE = 0x1,
26 _az_FACILITY_CORE_PLATFORM = 0x2,
27 _az_FACILITY_CORE_JSON = 0x3,
28 _az_FACILITY_CORE_HTTP = 0x4,
29 _az_FACILITY_IOT = 0x5,
30 _az_FACILITY_IOT_MQTT = 0x6,
31 _az_FACILITY_ULIB = 0x7,
36 _az_ERROR_FLAG = (int32_t)0x80000000,
53 #define _az_RESULT_MAKE_ERROR(facility, code) \
54 ((az_result)((uint32_t)_az_ERROR_FLAG | ((uint32_t)(facility) << 16U) | (uint32_t)(code)))
56 #define _az_RESULT_MAKE_SUCCESS(facility, code) \
57 ((az_result)(((uint32_t)(facility) << 16U) | (uint32_t)(code)))
67 AZ_OK = _az_RESULT_MAKE_SUCCESS(_az_FACILITY_CORE, 0),
151 return ((uint32_t)result & (uint32_t)_az_ERROR_FLAG) != 0;
167 #include <azure/core/_az_cfg_suffix.h>
169 #endif // _az_RESULT_H
@ AZ_ERROR_HTTP_RESPONSE_OVERFLOW
HTTP response overflow.
Definition: az_result.h:126
@ AZ_ERROR_HTTP_CORRUPT_RESPONSE_HEADER
Error while parsing HTTP response header.
Definition: az_result.h:132
@ AZ_ERROR_HTTP_ADAPTER
Generic error in the HTTP transport adapter implementation.
Definition: az_result.h:139
@ AZ_ERROR_HTTP_PIPELINE_INVALID_POLICY
HTTP pipeline is malformed.
Definition: az_result.h:117
@ AZ_ERROR_ITEM_NOT_FOUND
Requested item was not found.
Definition: az_result.h:83
@ AZ_ERROR_UNEXPECTED_CHAR
Input can't be successfully parsed.
Definition: az_result.h:86
@ AZ_ERROR_ARG
Input argument does not comply with the expected range of values.
Definition: az_result.h:74
int32_t az_result
The type represents the various success and error conditions.
Definition: az_result.h:46
az_result_core
The type represents the various az_result success and error conditions specific to SDK Core.
Definition: az_result.h:64
@ AZ_ERROR_JSON_READER_DONE
No more JSON text left to process.
Definition: az_result.h:110
@ AZ_ERROR_NOT_ENOUGH_SPACE
The destination size is too small for the operation.
Definition: az_result.h:77
AZ_NODISCARD AZ_INLINE bool az_result_succeeded(az_result result)
Checks whether the result provided indicates a success.
Definition: az_result.h:162
AZ_NODISCARD AZ_INLINE bool az_result_failed(az_result result)
Checks whether the result provided indicates a failure.
Definition: az_result.h:149
@ AZ_ERROR_HTTP_AUTHENTICATION_FAILED
Authentication failed.
Definition: az_result.h:123
@ AZ_ERROR_NOT_IMPLEMENTED
Requested functionality is not implemented.
Definition: az_result.h:80
@ AZ_ERROR_DEPENDENCY_NOT_PROVIDED
Definition: az_result.h:96
@ AZ_ERROR_CANCELED
A context was canceled, and a function had to return before result was ready.
Definition: az_result.h:71
@ AZ_ERROR_JSON_NESTING_OVERFLOW
The JSON depth is too large.
Definition: az_result.h:107
@ AZ_ERROR_HTTP_INVALID_METHOD_VERB
Unknown HTTP method verb.
Definition: az_result.h:120
@ AZ_OK
Success.
Definition: az_result.h:67
@ AZ_ERROR_OUT_OF_MEMORY
Dynamic memory allocation request was not successful.
Definition: az_result.h:100
@ AZ_ERROR_HTTP_INVALID_STATE
The az_http_response instance is in an invalid state.
Definition: az_result.h:114
@ AZ_ERROR_UNEXPECTED_END
Unexpected end of the input data.
Definition: az_result.h:89
@ AZ_ERROR_HTTP_END_OF_HEADERS
There are no more headers within the HTTP response payload.
Definition: az_result.h:135
@ AZ_ERROR_JSON_INVALID_STATE
The kind of the token being read is not compatible with the expected type of the value.
Definition: az_result.h:104
@ AZ_ERROR_HTTP_RESPONSE_COULDNT_RESOLVE_HOST
Couldn't resolve host.
Definition: az_result.h:129
@ AZ_ERROR_NOT_SUPPORTED
Not supported.
Definition: az_result.h:92