Expand description
Error handling logic for our ffi code.
Structs§
- FfiError
- An error as returned by the Arti FFI code.
Constants§
- ARTI_
RPC_ STATUS_ ALL_ CONNECT_ ATTEMPTS_ FAILED - All of our attempts to connect to Arti failed, or we reached an explicit instruction to “abort” our connection attempts.
- ARTI_
RPC_ STATUS_ BAD_ AUTH - We tried to authenticate with Arti, but it rejected our attempt.
- ARTI_
RPC_ STATUS_ BAD_ CONNECT_ POINT_ PATH - We were unable to parse or resolve an entry in our connect point search path.
- ARTI_
RPC_ STATUS_ CONNECT_ IO - Tried to connect to Arti, but an IO error occurred.
- ARTI_
RPC_ STATUS_ CONNECT_ POINT_ NOT_ USABLE - We tried to connect to Arti at a given connect point, but it could not be used: either because we don’t know how, or because we were not able to access some necessary file or directory.
- ARTI_
RPC_ STATUS_ INTERNAL - An internal error occurred in the arti rpc client.
- ARTI_
RPC_ STATUS_ INVALID_ INPUT - One or more of the inputs to a library function was invalid.
- ARTI_
RPC_ STATUS_ NOT_ AUTHENTICATED - Some operation failed because it was attempted on an unauthenticated channel.
- ARTI_
RPC_ STATUS_ NOT_ SUPPORTED - Tried to use some functionality (for example, an authentication method or connection scheme) that wasn’t available on this platform or build.
- ARTI_
RPC_ STATUS_ PEER_ PROTOCOL_ VIOLATION - Our peer has, in some way, violated the Arti-RPC protocol.
- ARTI_
RPC_ STATUS_ PROXY_ IO - An IO error occurred while trying to negotiate a data stream using Arti as a proxy.
- ARTI_
RPC_ STATUS_ PROXY_ STREAM_ FAILED - An attempt to negotiate a data stream through Arti failed, with an error from the proxy protocol.
- ARTI_
RPC_ STATUS_ REQUEST_ COMPLETED - Tried to check the status of a request and found that it was no longer running.
- ARTI_
RPC_ STATUS_ REQUEST_ FAILED - The peer reports that one of our requests has failed.
- ARTI_
RPC_ STATUS_ SHUTDOWN - The peer has closed our connection; possibly because it is shutting down.
- ARTI_
RPC_ STATUS_ SUCCESS - The function has returned successfully.
Functions§
- arti_
rpc_ ⚠err_ clone - Make and return copy of a provided error.
- arti_
rpc_ ⚠err_ free - Release storage held by a provided error.
- arti_
rpc_ ⚠err_ message - Return a human-readable error message associated with a given error.
- arti_
rpc_ ⚠err_ os_ error_ code - Return the OS error code underlying
err
, if any. - arti_
rpc_ ⚠err_ response - Return a Json-formatted error response associated with a given error.
- arti_
rpc_ ⚠err_ status - Return the status code associated with a given error.
- arti_
rpc_ status_ to_ str - Return a string representing the meaning of a given
ArtiRpcStatus
.
Type Aliases§
- Arti
RpcError - An error returned by the Arti RPC code, exposed as an object.