3 $title = 'Internal Server Error';
4 if ( $exception->getCode() == 400 ) {
5 $title = 'Bad Request';
12 em { font-weight: bold; font-family: monospace; color: #e00404; background-color: #ffeaea; }
16 <h1><?php echo $title ?></h1>
18 <?php if (get_class($exception) == 'Nominatim\DatabaseError') { ?>
20 <p>Nominatim has encountered an internal error while accessing the database.
21 This may happen because the database is broken or because of a bug in
26 <p>Nominatim has encountered an error with your request.</p>
33 Uncaught exception <em><?php echo get_class($exception) ?></em>
34 with message <em><?php echo $exception->getMessage() ?></em>
36 <?php if (CONST_Debug) { ?>
38 thrown in <em><?php $exception->getFile() . '('. $exception->getLine() . ')' ?></em>.
40 <?php if (get_class($exception) == 'Nominatim\DatabaseError') { ?>
43 <em><?php echo $exception->getSqlError() ?></em>
45 <pre><?php echo $exception->getSqlDebugDump() ?></pre>
50 <pre><?php echo $exception->getTraceAsString() ?></pre>
55 If you feel this error is incorrect feel file an issue on
56 <a href="https://github.com/openstreetmap/Nominatim/issues">Github</a>.
58 Please include the error message above and the URL you used.