mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Cleaned up some logic related to how tokens and refreshing works. Lots of stuff was broken.
26 lines
689 B
PHP
26 lines
689 B
PHP
<?php
|
|
|
|
namespace cora;
|
|
|
|
/**
|
|
* Custom exception class. Requires message, code, and replaces $previous with
|
|
* $reportable to indicate if the exception should be reported to a logging
|
|
* service or not.
|
|
*
|
|
* The class name was made lowercase to simplify autoincludes, but the
|
|
* interface was otherwise left alone because I still need to support catching
|
|
* regular exceptions.
|
|
*
|
|
* @author Jon Ziebell
|
|
*/
|
|
final class exception extends \Exception {
|
|
public function __construct($message, $code, $reportable = true) {
|
|
$this->reportable = $reportable;
|
|
return parent::__construct($message, $code, null);
|
|
}
|
|
|
|
public function getReportable() {
|
|
return $this->reportable;
|
|
}
|
|
}
|