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]

[src]

Create a new error signifying that the input provided to the function was genuinely invalid.

[src]

Create a new error signifying that the request provided to the function was genuinely bad (for example, headers or data were missing).

[src]

Create a new error signifying that the initializer code for the function has failed; this error compromises the function runtime.

[src]

Create a new error signifying that the input/output coercion code has encountered an unrecoverable problem; this error compromises the function runtime.

[src]

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.

[src]

Create a new error representing a totally unexpected situation; this error compromises the function runtime.

[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]

[src]

Formats the value using the given formatter.

impl Display for FunctionError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for FunctionError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl Into<Response> for FunctionError
[src]

[src]

Performs the conversion.