1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00

Remove unused

MultireasonException has been replaced with CompositeException.
This commit is contained in:
Aaron Piotrowski 2021-09-15 23:14:10 -05:00
parent bfe8d635b8
commit b5b40cff9c
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -1,29 +0,0 @@
<?php
namespace Amp;
class MultiReasonException extends \Exception
{
/** @var \Throwable[] */
private array $reasons;
/**
* @param \Throwable[] $reasons Array of exceptions rejecting the promise.
* @param string|null $message
*/
public function __construct(array $reasons, string $message = null)
{
parent::__construct($message ?: "Multiple errors encountered; use "
. self::class . "::getReasons() to retrieve the array of exceptions thrown");
$this->reasons = $reasons;
}
/**
* @return \Throwable[]
*/
public function getReasons(): array
{
return $this->reasons;
}
}