<?php

declare (strict_types=1);
namespace Paysera\Scoped;

/**
 * Raised on validation error in passed data when building the request
 */
class WebToPay_Exception_Validation extends WebToPayException
{
    public function __construct(string $message, int $code = 0, ?string $field = null, ?\Exception $previousException = null)
    {
        parent::__construct($message, $code, $previousException);
        if ($field) {
            $this->setField($field);
        }
    }
}
/**
 * Raised on validation error in passed data when building the request
 */
\class_alias('Paysera\\Scoped\\WebToPay_Exception_Validation', 'WebToPay_Exception_Validation', \false);
