| 1 |
<?php |
| 2 |
|
| 3 |
declare( strict_types=1 ); |
| 4 |
|
| 5 |
namespace Packetery\Core\Api\Rest\Exception; |
| 6 |
|
| 7 |
class InvalidApiKeyException extends \RuntimeException { |
| 8 |
public function __construct( string $message ) { |
| 9 |
parent::__construct( $message ); |
| 10 |
} |
| 11 |
|
| 12 |
public static function createFromMissingKey(): self { |
| 13 |
return new self( 'API key is missing' ); |
| 14 |
} |
| 15 |
} |
| 16 |
|