19 declare(strict_types=1);
    25         if (!defined(
'DEVMODE') || DEVMODE !== 1) {
    26             return htmlspecialchars($this->getInspector()->getException()->getMessage());
    29         $fault_string = \Whoops\Exception\Formatter::formatExceptionPlain($this->getInspector());
    30         $exception = $this->getInspector()->getException();
    31         $previous = $exception->getPrevious();
    34             $previous = $previous->getPrevious();
    37         return htmlspecialchars($fault_string);
    43             '%s: %s in file %s on line %d',
    44             get_class($exception),
    45             $exception->getMessage(),
    46             $exception->getFile(),
    55         return \Whoops\Handler\Handler::QUIT;
    58     private function toXml(): string
    60         $fault_code = htmlspecialchars((
string) $this->getInspector()->getException()->getCode());
    63         $xml = 
'<?xml version="1.0" encoding="UTF-8"?>';
    64         $xml .= 
'<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">';
    65         $xml .= 
'  <SOAP-ENV:Body>';
    66         $xml .= 
'    <SOAP-ENV:Fault>';
    67         $xml .= 
'      <faultcode>' . $fault_code . 
'</faultcode>';
    68         $xml .= 
'      <faultstring>' . $fault_string . 
'</faultstring>';
    69         $xml .= 
'    </SOAP-ENV:Fault>';
    70         $xml .= 
'  </SOAP-ENV:Body>';
    71         $xml .= 
'</SOAP-ENV:Envelope>';
 
getSimpleExceptionOutput(Throwable $exception)