# error_code.h


## Overview

Defines the error codes for the **FileIO** module.

**System capability**: SystemCapability.FileManagement.File.FileIO

**Since**: 12

**Related module**: [FileIO](_file_i_o.md)


## Summary


### Types

| Name| Description| 
| -------- | -------- |
| typedef enum [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode-1) [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode) | Defines an enum for the error codes used in the **FileIO** module.| 


### Enums

| Name| Description| 
| -------- | -------- |
| [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode-1) {<br>ERR_OK = 0,<br>ERR_PERMISSION_ERROR = 201,<br>ERR_INVALID_PARAMETER = 401,<br>ERR_DEVICE_NOT_SUPPORTED = 801,<br>ERR_EPERM = 13900001,<br>ERR_ENOENT = 13900002,<br>ERR_ENOMEM = 13900011,<br>ERR_UNKNOWN = 13900042<br>} | Enumerates the error codes used in the **FileIO** module.|