Files
luos/gulliver/system/class.pmException.php
Paula V. Quispe c3fb995759 HOR-1471
HOR-1471

HOR-1471
2016-07-28 15:48:28 -04:00

29 lines
696 B
PHP
Executable File

<?php
/**
* HttpProxyController
*
* @author Erik Amaru Ortiz <erik@colosa.com, aortiz.erik@gmail.com>
* @package gulliver.system
* @access public
*/
class PMException extends Exception
{
public function __construct ($message, $code = 0, $previous = null)
{
parent::__construct( $message, 1 );
}
public function __toString ()
{
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');
}
}