src/Encoder.php
public function encodeError(\Exception $error)
    {
        $writer = $this->getWriter();
        $writer->startElement('methodResponse');
        $writer->startElement('fault');
        $writer->startElement('value');
        $exc = \fpoirotte\XRL\NativeEncoder::convert($error);
        $exc->write($writer, $this->timezone, $this->stringTag);
        $writer->endElement();
        $writer->endElement();
        $writer->endElement();
        $result = $this->finalizeWrite($writer);
        return $result;
    }
public function encodeError(\Exception $error)
    {
        $writer = $this->getWriter();
        $writer->startElement('methodResponse');
        $writer->startElement('fault');
        $writer->startElement('value');
        $exc = \fpoirotte\XRL\NativeEncoder::convert($error);
        $exc->write($writer, $this->timezone, $this->stringTag);
        $writer->endElement();
        $writer->endElement();
        $writer->endElement();
        $result = $this->finalizeWrite($writer);
        return $result;
    }
/ \copydoc fpoirotte::XRL::EncoderInterface::encodeError()