1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

Merge pull request #54 from amphp/ex-msg

Make exception messages more generic
This commit is contained in:
Aaron Piotrowski 2017-01-15 08:48:56 -06:00 committed by GitHub
commit e3cb5dc385
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class MultiReasonException extends \Exception {
* @param string|null $message
*/
public function __construct(array $reasons, string $message = null) {
parent::__construct($message ?: "Too many promises were rejected");
parent::__construct($message ?: "Multiple errors encountered");
$this->reasons = $reasons;
}

View File

@ -7,6 +7,6 @@ class TimeoutException extends \Exception {
* @param string|null $message
*/
public function __construct(string $message = null) {
parent::__construct($message ?: "Promise resolution timed out");
parent::__construct($message ?: "Operation timed out");
}
}