8 % $exception = [ $exception ] unless ref $exception eq 'ARRAY';
9 % for my $e (@$exception) {
11 <h1 style="text-align: center">
12 <% $e->title || ( $e->is_server_error ? 'Server Error' : $e->is_client_error ? 'Error' : 'Message' ) %>
15 % print "ERROR: $e\n";
17 <div style="margin: auto; width: 60%">
19 % if( $e->public_message ) {
20 <% $e->public_message . ( $e->public_message =~ /\.\s*$/ ? '' : '.' ) %>
22 Our apologies, there was an error processing your request.
28 An error report has been sent to the <% $project_name %> development team.
31 % if( $e->is_client_error || $e->is_server_error and $contact_email ) {
33 Feel free to contact us at <a href="mailto:<% $contact_email %>">
34 <% $contact_email %></a>, if the problem persists, and
35 % if( $e->is_server_error ) {
36 we will keep you informed of our progress in resolving it.
38 we will work with you to resolve it.
46 % if( $show_dev_message && $e->can('developer_message') && defined $e->developer_message ) {
49 white-space: pre-wrap; /* css-3 */
50 white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
51 white-space: -pre-wrap; /* Opera 4-6 */
52 white-space: -o-pre-wrap; /* Opera 7 */
53 word-wrap: break-word; /* Internet Explorer 5.5+ */
57 <div style="margin: 1em 0; border: 2px solid orange; padding: 0 1em 1em 1em">
58 <h3>Developer message:</h3>
59 <pre><% defined $e->developer_message ? $e->developer_message : 'none provided' | h %></pre>