for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Equip\Auth\Exception;
/**
* Exception that occurs when a user does not provide authentication
* credentials.
*/
class UnauthorizedException extends AuthException
{
public function __construct(
$message = 'Unknown authentication error occurred',
$code = 401,
\Exception $previous = null
) {
parent::__construct($message, $code, $previous);
}
public static function noToken()
throw new static('No authentication token was specified');