Skip to main content

Error Codes

If a particular native API call fails, Neutralinojs client library rejects the pending Promise with an error object.

The error object has the following structure.

code: "CODE"
message: "MESSAGE"

Native API error codes#

Error codeMessageThrown by
NE_FS_DIRCRERUnable to create directory.os.createDirectory
NE_FS_RMDIRERUnable to remove directory.os.removeDirectory
NE_FS_FILRDERFile read error.filesystem.readFile, filesystem.readBinaryFile
NE_FS_FILWRERFile write error.filesystem.writeFile, filesystem.writeBinaryFile
NE_FS_FILRMERFile remove error.filesystem.removeFile
NE_FS_NOPATHENo file or directory.filesystem.getStats, filesystem.readDirectory
NE_FS_COPYFERFile copy error.filesystem.copyFile
NE_FS_MOVEFERFile move error.filesystem.moveFile
NE_OS_ENVNOEXThe environment variable is not defined..os.getEnv,
NE_OS_INVMSGAInvalid message box arguments.os.showMessageBox
NE_OS_INVKNPTInvalid platform path name.os.getPath
NE_ST_INVSTKYInvalid storage, storage.setData
NE_ST_STKEYWEStorage write
NE_RT_INVTOKNInvalid access token.all
NE_RT_NATPRMENo permission to execute the provided native method.all,
NE_RT_APIPRMENo permission to use the native API.all
NE_RT_NATRTERNative method runtime error. Mostly occured due to missing parameters.all
NE_RT_NATNTIMNative method is not implemented.internal
NE_CL_NSEROFFNeutralino server is not reachable.all