mirror of
https://github.com/danog/amp.git
synced 2024-11-26 20:15:00 +01:00
Note method to retreive array of exceptions
This commit is contained in:
parent
19bcf9b33d
commit
272f78dcb2
@ -13,7 +13,8 @@ class MultiReasonException extends \Exception
|
||||
*/
|
||||
public function __construct(array $reasons, string $message = null)
|
||||
{
|
||||
parent::__construct($message ?: "Multiple errors encountered");
|
||||
parent::__construct($message ?: "Multiple errors encountered; use "
|
||||
. self::class . "::getReasons() to retrieve the array of exceptions thrown");
|
||||
|
||||
$this->reasons = $reasons;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user