<?php

namespace NoahVet\Reef\Jane\Exception;

class TokeninfoUnauthorizedException extends UnauthorizedException
{
    /**
     * @var \NoahVet\Reef\Jane\Model\OauthV2TokenInfoTokenGetResponse401
     */
    private $oauthV2TokenInfoTokenGetResponse401;

    /**
     * @var \Psr\Http\Message\ResponseInterface
     */
    private $response;

    public function __construct(\NoahVet\Reef\Jane\Model\OauthV2TokenInfoTokenGetResponse401 $oauthV2TokenInfoTokenGetResponse401, \Psr\Http\Message\ResponseInterface $response)
    {
        parent::__construct('Retrieve token info from token');
        $this->oauthV2TokenInfoTokenGetResponse401 = $oauthV2TokenInfoTokenGetResponse401;
        $this->response = $response;
    }

    public function getOauthV2TokenInfoTokenGetResponse401(): \NoahVet\Reef\Jane\Model\OauthV2TokenInfoTokenGetResponse401
    {
        return $this->oauthV2TokenInfoTokenGetResponse401;
    }

    public function getResponse(): \Psr\Http\Message\ResponseInterface
    {
        return $this->response;
    }
}
