<?php

namespace NoahVet\Reef\Domain\Security\Exception;

class IAMException extends \Exception
{
    protected ?string $responseBody;

    public function __construct(string $message = '', int $code = 0, ?string $responseBody = null)
    {
        parent::__construct($message, $code);

        $this->responseBody = $responseBody;
    }

    public function getResponseBody(): ?string
    {
        return $this->responseBody;
    }
}
