Struct fdk::FunctionError
[−]
[src]
pub struct FunctionError { /* fields omitted */ }
An Error
which can occur during the execution of a function. Depending on
which kind of error it is, it could signify that the function runtime is
compromised or it could just represent an issue with the way the caller
provided input data.
Methods
impl FunctionError
[src]
fn invalid_input<E>(error: E) -> FunctionError where
E: Into<Box<Error + Send + Sync>>,
[src]
E: Into<Box<Error + Send + Sync>>,
Create a new error signifying that the input provided to the function was genuinely invalid.
fn bad_request<E>(error: E) -> FunctionError where
E: Into<Box<Error + Send + Sync>>,
[src]
E: Into<Box<Error + Send + Sync>>,
Create a new error signifying that the request provided to the function was genuinely bad (for example, headers or data were missing).
fn initialization<E>(error: E) -> FunctionError where
E: Into<Box<Error + Send + Sync>>,
[src]
E: Into<Box<Error + Send + Sync>>,
Create a new error signifying that the initializer code for the function has failed; this error compromises the function runtime.
fn coercion<E>(error: E) -> FunctionError where
E: Into<Box<Error + Send + Sync>>,
[src]
E: Into<Box<Error + Send + Sync>>,
Create a new error signifying that the input/output coercion code has encountered an unrecoverable problem; this error compromises the function runtime.
fn io<E>(error: E) -> FunctionError where
E: Into<Box<Error + Send + Sync>>,
[src]
E: Into<Box<Error + Send + Sync>>,
Create a new error signifying that an i/o error has occurred while reading or writing the i/o streams; this error compromises the function runtime.
fn other<E>(error: E) -> FunctionError where
E: Into<Box<Error + Send + Sync>>,
[src]
E: Into<Box<Error + Send + Sync>>,
Create a new error representing a totally unexpected situation; this error compromises the function runtime.
fn is_user_error(&self) -> bool
[src]
Returns true if the error can be reported to the user as a client error (a 400-series http error).
Trait Implementations
impl Debug for FunctionError
[src]
impl Display for FunctionError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for FunctionError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more