The single exception type raised (or returned in {:error, _} tuples) by the
SDK. kind discriminates the failure:
:binary_not_found— thebsdkrunbinary could not be located.:command_failed— absdkruninvocation exited non-zero. Carriesexit_code,stdout,stderr, and thelabelof the command.:sandbox_not_found— no machine matched the given id / prefix.:auth_error— the remote daemon (Bsdkrun.Client) rejected the bearer token, either over HTTP (401) or a GraphQL error withextensions.code == "UNAUTHENTICATED", or agraphql-transport-wssocket that closed beforeconnection_ackever arrived.:graphql_error— any otherBsdkrun.Clientfailure: an unreachable daemon, a non-GraphQL response, or a GraphQLerrors[]entry that isn't an auth failure.codecarries the GraphQLextensions.code, if any.:config_error— invalid or missingBsdkrun.Client.from_env/0configuration.
Summary
Functions
Build an :auth_error — the daemon rejected the bearer token.
Build a :binary_not_found error listing the paths that were searched.
Build a :command_failed error from a captured CLI result.
Build a :config_error for invalid/missing Bsdkrun.Client.from_env/0 configuration.
Build a :file_transfer error — a guest filesystem operation was refused.
Build a :graphql_error — an unreachable daemon, a non-GraphQL response, or
a GraphQL errors[] entry that isn't an auth failure. code is the
GraphQL extensions.code, if the server sent one.
Build a :sandbox_not_found error for the given id / prefix.
Types
@type kind() ::
:binary_not_found
| :command_failed
| :sandbox_not_found
| :file_transfer
| :auth_error
| :graphql_error
| :config_error
The category of failure this error represents.
Functions
Build an :auth_error — the daemon rejected the bearer token.
Build a :binary_not_found error listing the paths that were searched.
Build a :command_failed error from a captured CLI result.
Build a :config_error for invalid/missing Bsdkrun.Client.from_env/0 configuration.
Build a :file_transfer error — a guest filesystem operation was refused.
label carries the path that could not be transferred.
Build a :graphql_error — an unreachable daemon, a non-GraphQL response, or
a GraphQL errors[] entry that isn't an auth failure. code is the
GraphQL extensions.code, if the server sent one.
Build a :sandbox_not_found error for the given id / prefix.