lib/pocket/error.rb
module Pocket
# Custom error class for rescuing from all Pocket errors
class Error < StandardError; end
# Raised when Pocket returns the HTTP status code 400
class BadRequest < Error; end
# Raised when Pocket returns the HTTP status code 404
class NotFound < Error; end
# Raised when Pocket returns the HTTP status code 500
class InternalServerError < Error; end
# Raised when Pocket returns the HTTP status code 503
class ServiceUnavailable < Error; end
# Raised when a subscription payload hash is invalid
class InvalidSignature < Error; end
end