<?php

/*
 * This file was automatically generated.
 */
namespace Worldline\Vendor\OnlinePayments\Sdk;

use Worldline\Vendor\OnlinePayments\Sdk\Domain\DataObject;
/**
 * Class ReferenceException
 *
 * @package OnlinePayments\Sdk
 */
class ReferenceException extends ResponseException
{
    /**
     * @param int $httpStatusCode
     * @param DataObject $response
     * @param string|null $message
     */
    public function __construct(int $httpStatusCode, DataObject $response, ?string $message = null)
    {
        if (\is_null($message)) {
            $message = 'the payment platform returned a reference error response';
        }
        parent::__construct($httpStatusCode, $response, $message);
    }
}
