for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* IssueSubmissionException
*/
namespace Fr3nch13\Jira\Exception;
* Issue Submission Exception
*
* Throw when there was an error from the server when submitting an issue.
class IssueSubmissionException extends JiraBaseException
{
* @var int Throw a 500 when something goes wrong.
protected $_defaultCode = 500;
* Constructor.
* Allows you to create exceptions that are treated as framework errors and disabled
* when debug mode is off.
* @param string|array<int, string> $message Either the string of the error message, or an array of attributes
* that are made available in the view, and sprintf()'d into Exception::$_messageTemplate
* @param int|null $code The code of the error, is also the HTTP status code for the error.
* @param \Exception|null $previous the previous exception.
public function __construct($message = '', $code = null, $previous = null)
$this->_messageTemplate = __('Problem submitting the Issue. Error(s): %s');
parent::__construct($message, $code, $previous);
}