HOR-1471
HOR-1471 HOR-1471
This commit is contained in:
@@ -12,7 +12,6 @@ class PMException extends Exception
|
||||
|
||||
public function __construct ($message, $code = 0, $previous = null)
|
||||
{
|
||||
//parent::__construct($message, 1, $previous);
|
||||
parent::__construct( $message, 1 );
|
||||
}
|
||||
|
||||
@@ -20,5 +19,10 @@ class PMException extends Exception
|
||||
{
|
||||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
|
||||
}
|
||||
|
||||
public function registerErrorLog($error, $token){
|
||||
$ws = (defined("SYS_SYS"))? SYS_SYS : "Wokspace Undefined";
|
||||
Bootstrap::registerMonolog('ExceptionCron', 400, $error->getMessage(), array('token'=>$token), $ws, 'exception.log');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user