Spaces:
Sleeping
Sleeping
Download processmaker-files/gulliver/system/class.pmException.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 741 Bytes
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/gulliver/system/class.pmException.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/gulliver/system/class.pmException.php
-
curl -L -o class.pmException.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/gulliver/system/class.pmException.php
741 Bytes
| /** | |
| * 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 static function registerErrorLog($error, $token){ | |
| $ws = (!empty(config("system.workspace")))? config("system.workspace") : "Undefined Workspace"; | |
| Bootstrap::registerMonolog('ExceptionCron', 400, $error->getMessage(), array('token'=>$token), $ws, 'processmaker.log'); | |
| } | |
| } | |