Type Definition crowbar::LambdaResult [] [src]

type LambdaResult<T = Value> = Result<T, Box<Error>>;

Result object that accepts Ok(T) or any Err(Error).

crowbar uses the Box<Error> method of error handling so that any Error can be thrown within your Lambda function.

If an error is thrown, it is converted to a Python RuntimeError, and the Debug string for the Error returned is used as the value.