Valinor/tests/Fake/Mapper/Tree/Message/FakeErrorMessage.php

22 lines
429 B
PHP
Raw Normal View History

2021-11-28 17:43:02 +01:00
<?php
declare(strict_types=1);
namespace CuyZ\Valinor\Tests\Fake\Mapper\Tree\Message;
use CuyZ\Valinor\Mapper\Tree\Message\Message;
use Exception;
final class FakeErrorMessage extends Exception implements Message
{
public function __construct(string $message = 'some error message')
{
parent::__construct($message);
}
2021-11-28 17:43:02 +01:00
public function __toString(): string
{
return $this->message;
2021-11-28 17:43:02 +01:00
}
}