bsdkrun/error
The single error type returned by every fallible function in the SDK.
Types
Why a call failed.
BinaryNotFound— thebsdkrunbinary could not be located; carries every path that was searched.CommandFailed— absdkruninvocation exited non-zero; carries the exit code, both captured streams, and a label naming the command.SandboxNotFound— no machine matched the given id or prefix.DecodeFailed—bsdkrun --jsonproduced output the SDK could not decode; carries the raw text.InvalidOptions— the create options were internally inconsistent, e.g. a required field left empty.
pub type Error {
BinaryNotFound(searched: List(String))
CommandFailed(
exit_code: Int,
stdout: String,
stderr: String,
label: String,
)
SandboxNotFound(id: String)
DecodeFailed(label: String, raw: String)
InvalidOptions(message: String)
}
Constructors
-
BinaryNotFound(searched: List(String)) -
CommandFailed( exit_code: Int, stdout: String, stderr: String, label: String, ) -
SandboxNotFound(id: String) -
DecodeFailed(label: String, raw: String) -
InvalidOptions(message: String)