first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-06-08 17:09:23 -04:00
commit df3a033196
17887 changed files with 8637778 additions and 0 deletions
@@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
/**
* @file classes/job/exceptions/JobException.php
*
* Copyright (c) 2014-2022 Simon Fraser University
* Copyright (c) 2000-2022 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class JobException
*
*/
namespace PKP\job\exceptions;
use Exception;
class JobException extends Exception
{
public const INVALID_PAYLOAD = 'invalid.job.payload';
/**
* Customize the class getMessage()
*/
public function __toString(): string
{
return self::class .
": [{$this->getCode()}] in " .
"{$this->getFile()} ({$this->getLine()}): " .
"{$this->getMessage()}\n";
}
}