src/Viserio/Component/Exception/ErrorHandler.php
public function addTransformer(TransformerContract $transformer): HandlerContract
    {
        $this->transformers[\get_class($transformer)] = $transformer;

        return $this;
    }
public function addTransformer(TransformerContract $transformer): HandlerContract
    {
        $this->transformers[\get_class($transformer)] = $transformer;

        return $this;
    }
Add the transformed instance.

@param \Viserio\Component\Contract\Exception\Transformer $transformer

@return $this