ffx_command_error/
lib.rs

1// Copyright 2023 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#[macro_use]
6pub mod macros;
7mod context;
8mod error;
9
10pub use context::FfxContext;
11pub use error::{Error, NonFatalError, Result};
12
13#[doc(hidden)]
14pub mod macro_deps {
15    pub use anyhow;
16}
17
18#[cfg(test)]
19pub mod tests {
20    pub const FFX_STR: &str = "I am an ffx error";
21    pub const ERR_STR: &str = "I am not an ffx error";
22}