Overview

Namespaces

  • Crowdsdom
    • Client
      • Exceptions
    • Labor
      • Models
        • Base
  • PHP

Exceptions

  • AuthException
  • Overview
  • Namespace
  • Class
  • Tree
 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: }
API documentation generated by ApiGen 2.8.0