public function get(ClientException $exception, MethodInterface $method)
    {
        $map = $this->getMap();
        if ($this->supports($exception, $map)) {
            return $this->create(
                $this->getMappedClass($exception, $map),
                $exception,
                $method
            );
        }

        return $this->create(
            'Cardinity\\Exception\\UnexpectedResponse',
            $exception,
            $method
        );
    }
public function get(ClientException $exception, MethodInterface $method)
    {
        $map = $this->getMap();
        if ($this->supports($exception, $map)) {
            return $this->create(
                $this->getMappedClass($exception, $map),
                $exception,
                $method
            );
        }

        return $this->create(
            'Cardinity\\Exception\\UnexpectedResponse',
            $exception,
            $method
        );
    }
public function get ( ClientException $ exception , MethodInterface $ method ) { $ map = $ this -> getMap ( ) ; if ( $ this -> supports ( $ exception , $ map ) ) { return $ this -> create ( $ this -> getMappedClass ( $ exception , $ map ) , $ exception , $ method ) ; } return $ this -> create ( 'Cardinity\\Exception\\UnexpectedResponse' , $ exception , $ method ) ; }
Get mapped exception
@param ClientException $exception
@param MethodInterface $method
@return Cardinity\Exception\Request
Get mapped exception