Generates boilerplate code for idiomatic error handling.

Can be called on variables and expressions of the error type.

Each value is either the err variable or a default value of the corresponding return type of the enclosing function. You can call this template on expressions with multiple values.