Type Definition crowbar::LambdaResult [] [src]

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

Result object that accepts Ok(Value) 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.