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     <?php echo $exception->getMessage() ?>
 
  35     <?php if (CONST_Debug) { ?>
 
  37         Exception <em><?php echo get_class($exception) ?></em> thrown in <em><?php echo $exception->getFile() . '('. $exception->getLine() . ')' ?></em>.
 
  39         <?php if (get_class($exception) == 'Nominatim\DatabaseError') { ?>
 
  42             <em><?php echo $exception->getSqlError() ?></em>
 
  44             <pre><?php echo $exception->getSqlDebugDump() ?></pre>
 
  49         <pre><?php echo $exception->getTraceAsString() ?></pre>
 
  54         If you feel this error is incorrect feel file an issue on
 
  55         <a href="https://github.com/openstreetmap/Nominatim/issues">Github</a>.
 
  57         Please include the error message above and the URL you used.