Home
last modified time | relevance | path

Searched refs:errorNumber (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/communication/netstack/frameworks/js/napi/tls/src/
H A Dtlssocket_exec.cpp126 context->SetError(errorNumber, MakeErrorMessage(errorNumber)); in ExecGetCertificate()
152 context->SetError(errorNumber, MakeErrorMessage(errorNumber)); in ExecConnect()
175 context->SetError(errorNumber, MakeErrorMessage(errorNumber)); in ExecGetCipherSuites()
198 context->SetError(errorNumber, MakeErrorMessage(errorNumber)); in ExecGetRemoteCertificate()
221 context->SetError(errorNumber, MakeErrorMessage(errorNumber)); in ExecGetProtocol()
244 context->SetError(errorNumber, MakeErrorMessage(errorNumber)); in ExecGetSignatureAlgorithms()
268 context->SetError(errorNumber, MakeErrorMessage(errorNumber)); in ExecSend()
298 context->SetError(errorNumber, MakeErrorMessage(errorNumber)); in ExecClose()
354 context->SetError(errorNumber, MakeErrorMessage(errorNumber)); in ExecGetRemoteAddress()
427 context->SetError(errorNumber, MakeErrorMessage(errorNumber)); in ExecGetState()
[all …]
H A Dtlssocketserver_exec.cpp58 context->SetError(errorNumber, TlsSocket::MakeErrorMessage(errorNumber)); in ExecGetCertificate()
81 context->SetError(errorNumber, TlsSocket::MakeErrorMessage(errorNumber)); in ExecListen()
131 context->SetError(errorNumber, TlsSocket::MakeErrorMessage(errorNumber)); in ExecGetRemoteCertificate()
155 context->SetError(errorNumber, TlsSocket::MakeErrorMessage(errorNumber)); in ExecGetProtocol()
180 context->SetError(errorNumber, TlsSocket::MakeErrorMessage(errorNumber)); in ExecGetSignatureAlgorithms()
207 context->SetError(errorNumber, TlsSocket::MakeErrorMessage(errorNumber)); in ExecSend()
230 context->SetError(errorNumber, TlsSocket::MakeErrorMessage(errorNumber)); in ExecClose()
253 context->SetError(errorNumber, TlsSocket::MakeErrorMessage(errorNumber)); in ExecStop()
381 context->SetError(errorNumber, TlsSocket::MakeErrorMessage(errorNumber)); in ExecGetState()
404 context->SetError(errorNumber, TlsSocket::MakeErrorMessage(errorNumber)); in ExecSetExtraOptions()
[all …]
H A Dmonitor.cpp180 napi_value errorNumber = NapiUtils::CreateInt32(workWrapper->env, errorRecvParma->errorNumber_); in EventErrorCallback() local
182 NapiUtils::SetNamedProperty(workWrapper->env, obj, "errorNumber", errorNumber); in EventErrorCallback()
224 tlsSocket->OnError([this, manager](auto errorNumber, auto errorString) { in ParserEventForOn() argument
226 errorRecvParma->errorNumber_ = errorNumber; in ParserEventForOn()
H A Dmonitor_server.cpp299 napi_value errorNumber = NapiUtils::CreateInt32(workWrapper->env, monitor->errorNumber_); in EventErrorCallback() local
301 NapiUtils::SetNamedProperty(workWrapper->env, obj, "errorNumber", errorNumber); in EventErrorCallback()
514 tlsSocketServer->OnError([this, ServerEventManager](auto errorNumber, auto errorString) { in TLSServerRegEvent() argument
515 errorNumber_ = errorNumber; in TLSServerRegEvent()
554 ptrConnection->OnError([this, eventManager](auto errorNumber, auto errorString) { in TLSConnectionRegEvent() argument
/ohos5.0/foundation/communication/netstack/interfaces/innerkits/tls_socket/include/
H A Dtls_socket.h47 using BindCallback = std::function<void(int32_t errorNumber)>;
48 using ConnectCallback = std::function<void(int32_t errorNumber)>;
49 using SendCallback = std::function<void(int32_t errorNumber)>;
50 using CloseCallback = std::function<void(int32_t errorNumber)>;
53 using GetStateCallback = std::function<void(int32_t errorNumber, const Socket::SocketStateBase &sta…
54 using SetExtraOptionsCallback = std::function<void(int32_t errorNumber)>;
55 using GetCertificateCallback = std::function<void(int32_t errorNumber, const X509CertRawData &cert)…
56 using GetRemoteCertificateCallback = std::function<void(int32_t errorNumber, const X509CertRawData …
57 using GetProtocolCallback = std::function<void(int32_t errorNumber, const std::string &protocol)>;
60 std::function<void(int32_t errorNumber, const std::vector<std::string> &algorithms)>;
[all …]
H A Dtls_socket_server.h57 using ListenCallback = std::function<void(int32_t errorNumber)>;
/ohos5.0/foundation/communication/netstack/test/unittest/tlssocket/server/
H A Dtls_socket_server_branch_test.cpp416 EXPECT_EQ(errorNumber, -1); in __anonee3477b50102()
430 EXPECT_EQ(errorNumber, TlsSocket::TLS_ERR_SYS_EINVAL); in __anonee3477b50202()
448 EXPECT_EQ(errorNumber, TlsSocket::TLSSOCKET_SUCCESS); in __anonee3477b50302()
467 EXPECT_NE(errorNumber, TlsSocket::TLSSOCKET_SUCCESS); in __anonee3477b50402()
481 EXPECT_EQ(errorNumber, TlsSocket::TLSSOCKET_SUCCESS); in __anonee3477b50502()
495 EXPECT_EQ(errorNumber, TlsSocket::TLSSOCKET_SUCCESS); in __anonee3477b50602()
510 EXPECT_EQ(errorNumber, TlsSocket::TLS_ERR_SYS_EINVAL); in __anonee3477b50702()
527 EXPECT_NE(errorNumber, TlsSocket::TLSSOCKET_SUCCESS); in __anonee3477b50802()
542 EXPECT_EQ(errorNumber, TlsSocket::TLS_ERR_SYS_EINVAL); in __anonee3477b50902()
559 EXPECT_NE(errorNumber, TlsSocket::TLSSOCKET_SUCCESS); in __anonee3477b50a02()
[all …]
/ohos5.0/base/update/updateservice/foundations/model/include/
H A Dbusiness_error.h62 int32_t errorNumber = static_cast<int32_t>(CallResult::SUCCESS); in from_json() local
63 JsonUtils::GetValueAndSetTo(jsonObj, "errorNum", errorNumber); in from_json()
64 businessError.errorNum = static_cast<CallResult>(errorNumber); in from_json()
/ohos5.0/foundation/communication/netstack/test/fuzztest/socket/fuzztest/tlssocket_fuzzer/
H A Dtls_socket_fuzzer.cpp75 tlsSocket.Close([](int32_t errorNumber) {}); in BindFuzzTest() argument
76 tlsSocket.GetRemoteAddress([](int32_t errorNumber, const Socket::NetAddress &address) {}); in BindFuzzTest() argument
77 tlsSocket.GetCertificate([](int32_t errorNumber, const X509CertRawData &cert) {}); in BindFuzzTest() argument
78 tlsSocket.GetRemoteCertificate([](int32_t errorNumber, const X509CertRawData &cert) {}); in BindFuzzTest() argument
79 tlsSocket.GetProtocol([](int32_t errorNumber, const std::string &protocol) {}); in BindFuzzTest() argument
80 tlsSocket.GetCipherSuite([](int32_t errorNumber, const std::vector<std::string> &suite) {}); in BindFuzzTest() argument
81 …tlsSocket.GetSignatureAlgorithms([](int32_t errorNumber, const std::vector<std::string> &algorithm… in BindFuzzTest() argument
85 tlsSocket.OnError([](int32_t errorNumber, const std::string &errorString) {}); in BindFuzzTest() argument
/ohos5.0/docs/zh-cn/contribute/template/
H A Derrorcodes-template.md11 | 1 | 错误码error.errorNumber | 按统一的错误码编号规则设计错误码ID。 |
12 | 2 | 错误信息error.message | **字段含义**:出现异常时,会给开发者抛出一个错误对象,对象里包括errorNumber和error.message,此…
/ohos5.0/foundation/communication/netstack/frameworks/native/http/http_curl/include/
H A Dhttp_curl.h19 using RequestCallback = std::function<void(int32_t errorNumber, const Response &response)>;
/ohos5.0/foundation/communication/netstack/frameworks/native/http/http_rust/include/
H A Dhttp_rust.h19 using RequestCallback = std::function<void(int32_t errorNumber, const Response &response)>;
/ohos5.0/docs/en/contribute/template/
H A Derrorcodes-template.md11 | 1 | error.errorNumber | Use the error code IDs that are designed based on the unified er…
12 … an exception occurs, an error object is thrown. The object contains **errorNumber** and **error.m…
/ohos5.0/foundation/communication/netstack/test/unittest/tlssocket/client/
H A DTlsSocketBranchTest.cpp251 …[](int32_t errorNumber, const std::string &errorString) { EXPECT_NE(TLSSOCKET_SUCCESS, errorNumber in __anonc01c89aa0202() argument
/ohos5.0/commonlibrary/ets_utils/js_api_module/buffer/src/
H A Djs_buffer.ts31 constructor(message: string, errorNumber: number) {
34 this.code = errorNumber;
66 public errorNumber: number = 0;
77 this.errorNumber = errNo;
182 switch (this.errorNumber) {