Rocket/lib/src/error.rs

15 lines
423 B
Rust
Raw Normal View History

2016-11-03 18:00:52 +00:00
/// [unstable] Error type for Rocket. Likely to change.
2016-04-04 05:41:31 +00:00
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
pub enum Error {
2016-11-03 18:00:52 +00:00
/// The request method was bad.
BadMethod,
2016-11-03 18:00:52 +00:00
/// The value could not be parsed.
BadParse,
2016-11-03 18:00:52 +00:00
/// There was no such route.
NoRoute, // TODO: Add a chain of routes attempted.
2016-11-03 18:00:52 +00:00
/// The error was internal.
Internal,
2016-11-03 18:00:52 +00:00
/// The requested key/index does not exist.
NoKey,
}