my @error = @{ $c->error }; # Add a new error. $c->error('Something bad happened'); # Clear the errors after doing something with them # like putting them in the stash for pretty printing # them in a template. $c->clear_errors() # This is equivalent to running $c->error(0);