Home
last modified time | relevance | path

Searched refs:ThrowErr (Results 1 - 25 of 125) sorted by relevance

12345

/foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/
H A Dfile_uri_n_exporter.cpp38 NError(EINVAL).ThrowErr(env); in Constructor()
44 NError(EINVAL).ThrowErr(env); in Constructor()
50 NError(ENOMEM).ThrowErr(env); in Constructor()
55 NError(EIO).ThrowErr(env); in Constructor()
66 NError(EINVAL).ThrowErr(env); in UriToString()
72 NError(EINVAL).ThrowErr(env); in UriToString()
83 NError(EINVAL).ThrowErr(env); in GetFileUriName()
89 NError(EINVAL).ThrowErr(env); in GetFileUriName()
100 NError(E_PARAMS).ThrowErr(env); in GetFullDirectoryUri()
106 NError(EINVAL).ThrowErr(en in GetFullDirectoryUri()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/
H A Dcommon_func.cpp53 NapiBusinessError().ThrowErr(env, EINVAL); in GetAdler32Arg()
63 NapiBusinessError().ThrowErr(env, EINVAL); in GetAdler32Arg()
79 NapiBusinessError().ThrowErr(env, EINVAL); in GetCrc64Arg()
89 NapiBusinessError().ThrowErr(env, EINVAL); in GetCrc64Arg()
107 NapiBusinessError().ThrowErr(env, EINVAL); in GetAdler32CombineArg()
114 NapiBusinessError().ThrowErr(env, EINVAL); in GetAdler32CombineArg()
121 NapiBusinessError().ThrowErr(env, EINVAL); in GetAdler32CombineArg()
151 NapiBusinessError().ThrowErr(env, EFAULT); in SetZStreamValue()
160 NapiBusinessError().ThrowErr(env, EINVAL); in SetZStreamValue()
191 NapiBusinessError().ThrowErr(en in GetZStreamInValue()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_tasksignal/
H A Dtask_signal_n_exporter.cpp42 NError(EINVAL).ThrowErr(env); in Constructor()
49 NError(ENOMEM).ThrowErr(env); in Constructor()
55 NError(EIO).ThrowErr(env); in Constructor()
72 NError(EIO).ThrowErr(exports_.env_); in Export()
79 NError(EIO).ThrowErr(exports_.env_); in Export()
90 NError(EINVAL).ThrowErr(env); in Cancel()
97 NError(EINVAL).ThrowErr(env); in Cancel()
103 NError(CANCEL_ERR).ThrowErr(env); in Cancel()
115 NError(EINVAL).ThrowErr(env); in OnCancel()
121 NError(EINVAL).ThrowErr(en in OnCancel()
[all...]
/foundation/filemanagement/dfs_service/interfaces/kits/js/cloudfilesync/
H A Dcloud_file_cache_napi.cpp68 NError(E_PARAMS).ThrowErr(env); in Constructor()
75 NError(E_UNKNOWN_ERR).ThrowErr(env); in Constructor()
86 NError(E_UNKNOWN_ERR).ThrowErr(exports_.env_); in ToExport()
93 NError(E_UNKNOWN_ERR).ThrowErr(exports_.env_); in ToExport()
107 NError(E_PARAMS).ThrowErr(env); in CleanCloudFileCache()
114 NError(EINVAL).ThrowErr(env); in CleanCloudFileCache()
120 NError(Convert2JsErrNum(ret)).ThrowErr(env); in CleanCloudFileCache()
146 NError(E_PARAMS).ThrowErr(env); in StartFileCache()
152 NError(E_PARAMS).ThrowErr(env); in StartFileCache()
183 NError(E_PARAMS).ThrowErr(en in StopFileCache()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_stream/
H A Dstream_n_exporter.cpp53 NError(EINVAL).ThrowErr(env); in FlushSync()
61 NError(EIO).ThrowErr(env); in FlushSync()
68 NError(errno).ThrowErr(env); in FlushSync()
79 NError(EINVAL).ThrowErr(env); in Flush()
87 NError(EIO).ThrowErr(env); in Flush()
125 NError(EINVAL).ThrowErr(env); in ReadSync()
134 NError(EIO).ThrowErr(env); in ReadSync()
149 NError(errno).ThrowErr(env); in ReadSync()
157 NError(EIO).ThrowErr(env); in ReadSync()
169 NError(EINVAL).ThrowErr(en in CloseSync()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_file/
H A Dfile_n_exporter.cpp45 NError(EINVAL).ThrowErr(env); in GetFileEntity()
50 NError(EINVAL).ThrowErr(env); in GetFileEntity()
61 NError(EINVAL).ThrowErr(env); in GetFD()
92 NError(EINVAL).ThrowErr(env); in GetExclusive()
104 NError(EINVAL).ThrowErr(env); in GetPath()
110 NError(EINVAL).ThrowErr(env); in GetPath()
120 NError(realPathRes).ThrowErr(env); in GetPath()
131 NError(EINVAL).ThrowErr(env); in GetName()
137 NError(EINVAL).ThrowErr(env); in GetName()
147 NError(realPathRes).ThrowErr(en in GetName()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_environment/
H A Denvironment_n_exporter.cpp92 NError(E_DEVICENOTSUPPORT).ThrowErr(env); in CheckInvalidAccess()
97 NError(E_PERMISSION_SYS).ThrowErr(env); in CheckInvalidAccess()
103 NError(E_PERMISSION).ThrowErr(env); in CheckInvalidAccess()
113 NError(E_PERMISSION_SYS).ThrowErr(env); in GetStorageDataDir()
119 NError(EINVAL).ThrowErr(env); in GetStorageDataDir()
151 NError(E_PERMISSION_SYS).ThrowErr(env); in GetUserDataDir()
157 NError(EINVAL).ThrowErr(env); in GetUserDataDir()
187 NError(E_DEVICENOTSUPPORT).ThrowErr(env); in GetUserDownloadDir()
193 NError(E_PARAMS).ThrowErr(env); in GetUserDownloadDir()
199 NError(E_UNKNOWN_ERROR).ThrowErr(en in GetUserDownloadDir()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_statfs/
H A Dstatfs_n_exporter.cpp30 NError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetFrSizeSync()
38 NError(EINVAL).ThrowErr(env, "Invalid path"); in GetFrSizeSync()
45 NError(errno).ThrowErr(env, "Failed get info"); in GetFrSizeSync()
57 NError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetFrSize()
65 NError(EINVAL).ThrowErr(env, "Invalid path"); in GetFrSize()
102 NError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetBSizeSync()
110 NError(EINVAL).ThrowErr(env, "Invalid path"); in GetBSizeSync()
117 NError(errno).ThrowErr(env); in GetBSizeSync()
127 NError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetBSize()
135 NError(EINVAL).ThrowErr(en in GetBSize()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dutimes.cpp34 NError(EINVAL).ThrowErr(env); in Sync()
41 NError(EINVAL).ThrowErr(env); in Sync()
48 NError(EINVAL).ThrowErr(env); in Sync()
56 NError(ENOMEM).ThrowErr(env); in Sync()
63 NError(ret).ThrowErr(env); in Sync()
71 NError(ENOMEM).ThrowErr(env); in Sync()
80 NError(ret).ThrowErr(env); in Sync()
H A Drename.cpp36 NError(EINVAL).ThrowErr(env); in Sync()
43 NError(EINVAL).ThrowErr(env); in Sync()
50 NError(EINVAL).ThrowErr(env); in Sync()
58 NError(ENOMEM).ThrowErr(env); in Sync()
64 NError(ret).ThrowErr(env); in Sync()
76 NError(EINVAL).ThrowErr(env); in Async()
83 NError(EINVAL).ThrowErr(env); in Async()
90 NError(EINVAL).ThrowErr(env); in Async()
H A Dxattr.cpp70 NError(EINVAL).ThrowErr(env); in SetSync()
80 NError(EINVAL).ThrowErr(env); in SetSync()
86 NError(EINVAL).ThrowErr(env); in SetSync()
92 NError(EINVAL).ThrowErr(env); in SetSync()
97 NError(errno).ThrowErr(env); in SetSync()
108 NError(EINVAL).ThrowErr(env); in GetSync()
118 NError(EINVAL).ThrowErr(env); in GetSync()
124 NError(EINVAL).ThrowErr(env); in GetSync()
131 NError(ret).ThrowErr(env); in GetSync()
142 NError(EINVAL).ThrowErr(en in GetAsync()
[all...]
H A Ddup.cpp35 NError(EINVAL).ThrowErr(env); in Sync()
41 NError(EINVAL).ThrowErr(env); in Sync()
47 NError(errno).ThrowErr(env); in Sync()
54 NError(ENOMEM).ThrowErr(env); in Sync()
61 NError(ret).ThrowErr(env); in Sync()
H A Dstat.cpp41 NError(EINVAL).ThrowErr(env); in ParseJsFile()
47 NError(ENOMEM).ThrowErr(env); in ParseJsFile()
53 NError(EINVAL).ThrowErr(env); in ParseJsFile()
80 NError(EINVAL).ThrowErr(env); in Sync()
92 NError(ENOMEM).ThrowErr(env); in Sync()
97 err.ThrowErr(env); in Sync()
104 NError(ENOMEM).ThrowErr(env); in Sync()
119 NError(EINVAL).ThrowErr(env); in Async()
129 NError(ENOMEM).ThrowErr(env); in Async()
H A Dread_lines.cpp69 NError(EINVAL).ThrowErr(env); in InstantiateReaderIterator()
76 NError(UNKROWN_ERR).ThrowErr(env); in InstantiateReaderIterator()
83 NError(UNKROWN_ERR).ThrowErr(env); in InstantiateReaderIterator()
118 NError(EINVAL).ThrowErr(env); in Async()
125 NError(EINVAL).ThrowErr(env); in Async()
133 NError(ret).ThrowErr(env); in Async()
141 NError(ENOMEM).ThrowErr(env); in Async()
170 NError(EINVAL).ThrowErr(env); in Sync()
177 NError(EINVAL).ThrowErr(env); in Sync()
185 NError(ret).ThrowErr(en in Sync()
[all...]
/foundation/filemanagement/user_file_service/frameworks/js/napi/file_access_module/root_info/
H A Dnapi_root_iterator_exporter.cpp37 NError(E_GETRESULT).ThrowErr(exports_.env_); in Export()
43 NError(E_GETRESULT).ThrowErr(exports_.env_); in Export()
54 NError(EINVAL).ThrowErr(env); in Constructor()
60 NError(E_GETRESULT).ThrowErr(env); in Constructor()
65 NError(E_GETRESULT).ThrowErr(env); in Constructor()
76 NError(EINVAL).ThrowErr(env); in Next()
83 NError(E_GETRESULT).ThrowErr(env); in Next()
89 NError(E_GETRESULT).ThrowErr(env); in Next()
95 NError(E_GETRESULT).ThrowErr(env); in Next()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_dir/
H A Ddir_n_exporter.cpp43 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetDirEntity()
49 UniError(EIO).ThrowErr(env, "Cannot get entity of Dir"); in GetDirEntity()
59 UniError(EBADF).ThrowErr(env, "Dir has been closed yet"); in CloseSync()
72 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in Close()
78 UniError(EIO).ThrowErr(env, "Cannot get entity of Dir"); in Close()
83 UniError(EBADF).ThrowErr(env, "Dir has been closed yet"); in Close()
154 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in Read()
160 UniError(EIO).ThrowErr(env, "Cannot get entity of Dir"); in Read()
165 UniError(EBADF).ThrowErr(env, "Dir has been closed yet"); in Read()
212 UniError(EINVAL).ThrowErr(en in ReadSync()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_securitylabel/
H A Dsecuritylabel_n_exporter.cpp35 NError(EINVAL).ThrowErr(env); in SetSecurityLabel()
45 NError(EINVAL).ThrowErr(env); in SetSecurityLabel()
51 NError(EINVAL).ThrowErr(env); in SetSecurityLabel()
57 NError(EINVAL).ThrowErr(env); in SetSecurityLabel()
88 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync()
98 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync()
105 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync()
111 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync()
117 NError(errno).ThrowErr(env); in SetSecurityLabelSync()
129 NError(EINVAL).ThrowErr(en in GetSecurityLabel()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_randomaccessfile/
H A Drandomaccessfile_n_exporter.cpp73 NError(EINVAL).ThrowErr(env); in GetFD()
79 NError(EIO).ThrowErr(env); in GetFD()
90 NError(EINVAL).ThrowErr(env); in GetFPointer()
96 NError(EIO).ThrowErr(env); in GetFPointer()
107 NError(EINVAL).ThrowErr(env); in SetFilePointerSync()
113 NError(EIO).ThrowErr(env); in SetFilePointerSync()
119 NError(EINVAL).ThrowErr(env); in SetFilePointerSync()
142 NError(EINVAL).ThrowErr(env); in ReadSync()
148 NError(EIO).ThrowErr(env); in ReadSync()
155 NError(EINVAL).ThrowErr(en in ReadSync()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_watcher/
H A Dwatcher_n_exporter.cpp41 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in Constructor()
47 UniError(EIO).ThrowErr(env, "INNER BUG. Failed to wrap entity for obj stat"); in Constructor()
58 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in StopSync()
64 UniError(EINVAL).ThrowErr(env, "get watcherEntity fail"); in StopSync()
76 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in Stop()
82 UniError(EINVAL).ThrowErr(env, "get watcherEntity fail"); in Stop()
121 UniError(EIO).ThrowErr(exports_.env_, "INNER BUG. Failed to define class"); in Export()
127 UniError(EIO).ThrowErr(exports_.env_, "INNER BUG. Failed to save class"); in Export()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_readeriterator/
H A Dreaderiterator_n_exporter.cpp32 NError(EINVAL).ThrowErr(env); in Constructor()
39 NError(ENOMEM).ThrowErr(env); in Constructor()
44 NError(UNKROWN_ERR).ThrowErr(env); in Constructor()
55 NError(EINVAL).ThrowErr(env); in Next()
61 NError(UNKROWN_ERR).ThrowErr(env); in Next()
68 NError(errno).ThrowErr(env); in Next()
100 NError(UNKROWN_ERR).ThrowErr(exports_.env_); in Export()
106 NError(UNKROWN_ERR).ThrowErr(exports_.env_); in Export()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_hash/class_hashstream/
H A Dhashstream_n_exporter.cpp59 NError(ENOMEM).ThrowErr(env); in SetHsEntity()
89 NError(EIO).ThrowErr(env); in SetHsEntity()
100 NError(EINVAL).ThrowErr(env); in Constructor()
107 NError(EINVAL).ThrowErr(env); in Constructor()
114 NError(EINVAL).ThrowErr(env); in Constructor()
126 NError(EINVAL).ThrowErr(env); in Digest()
132 NError(EIO).ThrowErr(env); in Digest()
168 NError(EINVAL).ThrowErr(env); in Update()
175 NError(EINVAL).ThrowErr(env); in Update()
182 NError(EIO).ThrowErr(en in Update()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stream/
H A Dstream_n_exporter.cpp45 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in ReadSync()
54 UniError(EBADF).ThrowErr(env, "Stream may have been closed"); in ReadSync()
70 UniError(errno).ThrowErr(env); in ReadSync()
76 UniError(errno).ThrowErr(env); in ReadSync()
86 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in CloseSync()
92 UniError(EINVAL).ThrowErr(env, "Stream may have been closed yet"); in CloseSync()
105 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in WriteSync()
113 UniError(EBADF).ThrowErr(env, "Stream may has been closed"); in WriteSync()
129 UniError(errno).ThrowErr(env); in WriteSync()
135 UniError(errno).ThrowErr(en in WriteSync()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
H A Dprop_n_exporter.cpp68 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in AccessSync()
74 UniError(EINVAL).ThrowErr(env, "Invalid path"); in AccessSync()
82 UniError(EINVAL).ThrowErr(env, "Invalid mode"); in AccessSync()
88 UniError(errno).ThrowErr(env); in AccessSync()
99 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in Access()
105 UniError(EINVAL).ThrowErr(env, "Invalid path"); in Access()
113 UniError(EINVAL).ThrowErr(env, "Invalid mode"); in Access()
151 UniError(EINVAL).ThrowErr(env, "Number of Arguments Unmatched"); in Unlink()
157 UniError(EINVAL).ThrowErr(env, "Invalid path"); in Unlink()
190 UniError(EINVAL).ThrowErr(en in Mkdir()
[all...]
H A Dopen.cpp37 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in Sync()
45 UniError(EINVAL).ThrowErr(env, "Invalid path"); in Sync()
53 UniError(EINVAL).ThrowErr(env, "Invalid flags"); in Sync()
69 UniError(EINVAL).ThrowErr(env, "called with O_CREAT/O_TMPFILE but no mode"); in Sync()
75 UniError(EINVAL).ThrowErr(env, "Invalid mode"); in Sync()
82 UniError(errno).ThrowErr(env, "Filename too long"); in Sync()
85 UniError(errno).ThrowErr(env); in Sync()
111 UniError(EINVAL).ThrowErr(env, "Invalid flags"); in ParseFlags()
123 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in Async()
128 UniError(EINVAL).ThrowErr(en in Async()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_watcher/
H A Dwatcher_n_exporter.cpp38 NError(EINVAL).ThrowErr(env); in Constructor()
45 NError(ENOMEM).ThrowErr(env); in Constructor()
50 NError(EIO).ThrowErr(env); in Constructor()
61 NError(EINVAL).ThrowErr(env); in Stop()
68 NError(EINVAL).ThrowErr(env); in Stop()
74 NError(ret).ThrowErr(env); in Stop()
85 NError(EINVAL).ThrowErr(env); in Start()
92 NError(EINVAL).ThrowErr(env); in Start()
99 NError(ret).ThrowErr(env); in Start()
215 NError(EIO).ThrowErr(exports in Export()
[all...]

Completed in 11 milliseconds

12345