1: <?php
2:
3: namespace Crowdsdom\Client\Exceptions;
4:
5: use GuzzleHttp\Psr7\Response;
6: use RuntimeException;
7:
8: class AuthException extends RuntimeException
9: {
10: public static function make(Response $response)
11: {
12: return new AuthException(sprintf("Auth failed with code %s", $response->getStatusCode()));
13: }
14: }