Expand description
Provides a common set of errors across the rivia crates to reduce the verbosity of error handling
§Using Rivia errors
use rivia::prelude::*;
let mut err = RvError::from(std::env::VarError::NotPresent);
assert!(err.downcast_ref::<std::env::VarError>().is_some());
assert!(err.downcast_mut::<std::env::VarError>().is_some());
assert!(err.source().is_none());Enums§
- Core
Error - An error indicating something went wrong with a core Rivia component
- File
Error - An error indicating something went wrong with a Rivia File operation
- Iter
Error - An error indicating something went wrong with a Rivia iterator operation
- Path
Error - An error indicating something went wrong with a Rivia path operation
- RvError
- An error that provides a common error for Rivia wrapping other internal errors
- String
Error - An error indicating something went wrong with a Rivia String operation
- User
Error - VfsError
- An error indicating something went wrong with a Rivia VFS operation
Type Aliases§
- RvResult
- Provides a simplified Rivia result type with a common Rivia error type