7 stable releases
3.0.2 | Nov 26, 2023 |
---|---|
3.0.1 | Nov 16, 2023 |
1.0.3 | Nov 11, 2022 |
1.0.2 | Nov 10, 2022 |
1.0.0 | Nov 9, 2022 |
#5 in #iceyee
48 downloads per month
6KB
93 lines
iceyee_error
自定义的异常, 包含有堆栈信息.
Supported Os
- linux
- macos
- windows
Example
#[test]
pub fn test_iceyee_error() {
use iceyee_error::IceyeeError;
use iceyee_error::WrapError;
use std::error::Error as StdError;
use std::fmt::Error as StdFmtError;
println!("");
let e: IceyeeError = IceyeeError::new("hello world.");
println!("{e}\n");
let e: IceyeeError = IceyeeError::from("hello world.");
println!("{e}\n");
let e: IceyeeError = IceyeeError::from(Box::new(StdFmtError) as Box<dyn StdError>);
println!("{e}\n");
let e: WrapError<IceyeeError> = WrapError::new(e);
println!("{e}\n");
return;
}
lib.rs
:
自定义的异常.