1 <?php
2
3 /*
4 * This file is part of the ICanBoogie package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace ICanBoogie\HTTP;
13
14 /**
15 * Exception thrown when the server is currently unavailable (because it is overloaded or
16 * down for maintenance).
17 */
18 class ServiceUnavailable extends \Exception implements Exception
19 {
20 public function __construct($message = "The server is currently unavailable (because it is overloaded or down for maintenance).", $code = 503, \Exception $previous = null)
21 {
22 parent::__construct($message, $code, $previous);
23 }
24 }
25