for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tymon\JWTAuth\Exceptions;
class JWTException extends \Exception
{
/**
* @var integer
*/
protected $statusCode = 500;
* @param string $message
* @param integer $statusCode
public function __construct($message = 'An error occurred', $statusCode = null)
parent::__construct($message);
if (! is_null($statusCode)) {
$this->setStatusCode($statusCode);
}
public function setStatusCode($statusCode)
$this->statusCode = $statusCode;
* @return integer the status code
public function getStatusCode()
return $this->statusCode;