HOR-1471

HOR-1471
This commit is contained in:
Paula V. Quispe
2016-07-27 16:37:21 -04:00
parent 4e14ccc976
commit c3fb995759
79 changed files with 399 additions and 170 deletions

View File

@@ -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');
}
}