Spaces:
Sleeping
Sleeping
processmaker-community / processmaker-files /workflow /engine /src /ProcessMaker /Exception /ProjectAlreadyExists.php
Download processmaker-files/workflow/engine/src/ProcessMaker/Exception/ProjectAlreadyExists.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 586 Bytes
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/src/ProcessMaker/Exception/ProjectAlreadyExists.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/workflow/engine/src/ProcessMaker/Exception/ProjectAlreadyExists.php
-
curl -L -o ProjectAlreadyExists.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/src/ProcessMaker/Exception/ProjectAlreadyExists.php
586 Bytes
| namespace ProcessMaker\Exception; | |
| use ProcessMaker\Project; | |
| class ProjectAlreadyExists extends \RuntimeException | |
| { | |
| const EXCEPTION_CODE = 21; | |
| public function __construct(Project\Handler $obj, $name, $message = "", \Exception $previous = null) { | |
| $message = empty($message) ? sprintf("Project \"%s\" with name: %s, already exists.", get_class($obj), $name) : $message; | |
| parent::__construct($message, self::EXCEPTION_CODE, $previous); | |
| } | |
| public function __toString() | |
| { | |
| return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | |
| } | |
| } |