1# drawing_error_code.h 2 3 4## Overview 5 6The **drawing_error_code.h** file declares the functions related to the error code in the drawing module. 7 8**File to include**: <native_drawing/drawing_error_code.h> 9 10**Library**: libnative_drawing.so 11 12**Since**: 12 13 14**Related module**: [Drawing](_drawing.md) 15 16 17## Summary 18 19 20### Types 21 22| Name| Description| 23| -------- | -------- | 24| typedef enum [OH_Drawing_ErrorCode](_drawing.md#oh_drawing_errorcode) [OH_Drawing_ErrorCode](_drawing.md#oh_drawing_errorcode) | Defines an enum for the error codes that may be generated by the module.| 25 26 27### Enums 28 29| Name| Description| 30| -------- | -------- | 31| [OH_Drawing_ErrorCode](_drawing.md#oh_drawing_errorcode) { OH_DRAWING_SUCCESS = 0, OH_DRAWING_ERROR_NO_PERMISSION = 201, OH_DRAWING_ERROR_INVALID_PARAMETER = 401, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE = 26200001,OH_DRAWING_ERROR_ALLOCATION_FAILED = 26200002 } | Enumerates the error codes that may be generated by the module.| 32 33 34### Functions 35 36| Name| Description| 37| -------- | -------- | 38| [OH_Drawing_ErrorCode](_drawing.md#oh_drawing_errorcode) [OH_Drawing_ErrorCodeGet](_drawing.md#oh_drawing_errorcodeget) () | Obtains the latest error code of the module. After the function is successfully executed, the error code returned by this function will not be modified.| 39