1# error_code.h 2 3## Overview 4 5Defines the error codes for the **FileIO** module. 6 7**File to include**: <filemanagement/fileio/error_code.h> 8 9**Library**: NA 10 11**System capability**: SystemCapability.FileManagement.File.FileIO 12 13**Since**: 12 14 15**Related module**: [FileIO](capi-fileio.md) 16 17## Summary 18 19### Enums 20 21| Name| typedef Keyword| Description| 22| -- | -- | -- | 23| [FileManagement_ErrCode](#filemanagement_errcode) | FileManagement_ErrCode | Enumerates the error codes used in the **FileIO** module.| 24 25## Enum Description 26 27### FileManagement_ErrCode 28 29``` 30enum FileManagement_ErrCode 31``` 32 33**Description** 34 35Enumerates the error codes used in the **FileIO** module. 36 37**Since**: 12 38 39| Enum Item| Description| 40| -- | -- | 41| ERR_OK = 0 | The API is called successfully.| 42| ERR_PERMISSION_ERROR = 201 | The permission verification fails.| 43| ERR_INVALID_PARAMETER = 401 | Invalid parameter.| 44| ERR_DEVICE_NOT_SUPPORTED = 801 | The device does not support this API.| 45| ERR_EPERM = 13900001 | The operation is not allowed.| 46| ERR_ENOENT = 13900002 | The file or folder does not exist.| 47| ERR_ENOMEM = 13900011 | A memory overflow occurs.| 48| ERR_UNKNOWN = 13900042 | Internal unknown error.| 49