Crate ffx_command_error

Source

Modules§

macros

Macros§

bug
Utility macro for constructing an [Error] that represents an unexpected failure condition (a bug).
exit_with_code
Utility macro for an early exit from a function returning an [Error] that represents an exit with a specific error code but no output.
return_bug
Utility macro for an early exit from a function returnng an [Error] that represents an unexpected failure condition (a bug).
return_user_error
Utility macro for an early exit from a function returnng an [Error] that represents a user-actionable failure condition.
user_error
Utility macro for constructing an [Error] that represents a user-actionable failure condition.

Structs§

NonFatalError
Represents a recoverable error. Intended to be embedded in Error.

Enums§

Error
A top level error type for ffx tool results

Traits§

FfxContext
Adds helpers to result types to produce useful error messages to the user from the ffx frontend (through crate::Error)

Type Aliases§

Result
A convenience Result type