2015-09-10 20:31:09 +02:00
|
|
|
<?php namespace BookStack\Exceptions;
|
2015-09-04 18:16:58 +02:00
|
|
|
|
|
|
|
class NotifyException extends \Exception
|
|
|
|
{
|
|
|
|
|
|
|
|
public $message;
|
|
|
|
public $redirectLocation;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* NotifyException constructor.
|
|
|
|
* @param string $message
|
|
|
|
* @param string $redirectLocation
|
|
|
|
*/
|
2018-12-30 17:11:58 +01:00
|
|
|
public function __construct(string $message, string $redirectLocation = "/")
|
2015-09-04 18:16:58 +02:00
|
|
|
{
|
|
|
|
$this->message = $message;
|
|
|
|
$this->redirectLocation = $redirectLocation;
|
|
|
|
parent::__construct();
|
|
|
|
}
|
2018-01-28 17:58:52 +01:00
|
|
|
}
|