Thruk::Controller::error - Thruk Controller
Thruk Controller.
predefined errors:
return $c->detach('/error/index/<nr>');
detailed errors:
return $c->detach_error({
msg "main error",
descr "more descriptive details",
code http code,
log 0|1, # force logging
debug_information more details which will be logged, (string / array)
skip_escape 0|1, # skip html escape of data
});
custom errors:
$c->stash->{errorMessage} = "short error";
$c->stash->{errorDescription} = "error description";
return $c->detach('/error/index/99');