1
0
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:
Aaron Piotrowski 2019-03-02 09:22:06 -06:00
parent 19bcf9b33d
commit 272f78dcb2
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -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;
}