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)]
|
2016-03-12 18:45:19 +00:00
|
|
|
pub enum Error {
|
2016-11-03 18:00:52 +00:00
|
|
|
/// The request method was bad.
|
2016-03-15 03:43:52 +00:00
|
|
|
BadMethod,
|
2016-11-03 18:00:52 +00:00
|
|
|
/// The value could not be parsed.
|
2016-03-15 03:43:52 +00:00
|
|
|
BadParse,
|
2016-11-03 18:00:52 +00:00
|
|
|
/// There was no such route.
|
2016-10-04 21:38:47 +00:00
|
|
|
NoRoute, // TODO: Add a chain of routes attempted.
|
2016-11-03 18:00:52 +00:00
|
|
|
/// The error was internal.
|
2016-08-27 01:37:28 +00:00
|
|
|
Internal,
|
2016-11-03 18:00:52 +00:00
|
|
|
/// The requested key/index does not exist.
|
2016-09-30 22:20:11 +00:00
|
|
|
NoKey,
|
2016-03-12 18:45:19 +00:00
|
|
|
}
|