NotAuthorizedException.php 744 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Gogs\Lib\Curl\Exception {
  3. /**
  4. * When the request fails because of an unauthorized token,
  5. * this is thrown instead.
  6. *
  7. * @author Joachim M. Giaever (joachim[]giaever.org)
  8. * @package curl
  9. * @version 0.1.1
  10. */
  11. class NotAuthorizedException extends HTTPUnexpectedResponse {
  12. /**
  13. * Sets the exceptions.
  14. *
  15. * @string $message - the response from the server.
  16. * @string $code - the HTTP status code, @default 401
  17. * @exception $prev - Previous exceptions
  18. **/
  19. public function __construct($message, $code = 401, \Exception $previous = null) {
  20. parent::__construct($message, $code, $previous);
  21. }
  22. }
  23. }
  24. ?>