repo/rest-api/src/Domain/Services/Exceptions/PatchTestConditionFailedException.php
<?php declare( strict_types=1 );
namespace Wikibase\Repo\RestApi\Domain\Services\Exceptions;
use Exception;
/**
* @license GPL-2.0-or-later
*/
class PatchTestConditionFailedException extends Exception {
private array $operation;
/** @var mixed */
private $actualValue;
/**
* @param string $message
* @param array $operation
* @param mixed $actualValue
*/
public function __construct( string $message, array $operation, $actualValue ) {
parent::__construct( $message );
$this->operation = $operation;
$this->actualValue = $actualValue;
}
public function getOperation(): array {
return $this->operation;
}
/**
* @return mixed
*/
public function getActualValue() {
return $this->actualValue;
}
}