pub trait ErrorSet<C> {
// Required methods
fn parsing_error(context: C, error: &str) -> ThrusterError<C>;
fn generic_error(context: C) -> ThrusterError<C>;
fn unauthorized_error(context: C) -> ThrusterError<C>;
fn not_found_error(context: C) -> ThrusterError<C>;
fn server_error(context: C) -> ThrusterError<C>;
}
Required Methods§
sourcefn parsing_error(context: C, error: &str) -> ThrusterError<C>
fn parsing_error(context: C, error: &str) -> ThrusterError<C>
Error specifically caused by parsing the incoming requests.
sourcefn generic_error(context: C) -> ThrusterError<C>
fn generic_error(context: C) -> ThrusterError<C>
Generic error for generalized or obfuscated bad requests.
Error used for unauthorized access.
sourcefn not_found_error(context: C) -> ThrusterError<C>
fn not_found_error(context: C) -> ThrusterError<C>
Error when a resource is not found.
sourcefn server_error(context: C) -> ThrusterError<C>
fn server_error(context: C) -> ThrusterError<C>
An error denoting a failure on the server side.