Skip to content

Commit

Permalink
Merge pull request #2 from y-ken/patch-1
Browse files Browse the repository at this point in the history
Add Feedlr::Error::ServiceUnavailableError
  • Loading branch information
khelll committed Oct 23, 2014
2 parents 0a0c006 + a9d46fd commit c85f034
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/feedlr/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def errors
401 => Feedlr::Error::Unauthorized,
403 => Feedlr::Error::Forbidden,
404 => Feedlr::Error::NotFound,
500 => Feedlr::Error::InternalServerError
500 => Feedlr::Error::InternalServerError,
503 => Feedlr::Error::ServiceUnavailableError
}
end
end
Expand Down Expand Up @@ -49,6 +50,9 @@ class ServerError < self; end
# Raised when Feedlr returns the HTTP status status_code 500
class InternalServerError < ServerError; end

# Raised when Feedlr returns the HTTP status status_code 503
class ServiceUnavailableError < ServerError; end

# Raised when the request times out
class RequestTimeout < self; end
end
Expand Down

0 comments on commit c85f034

Please sign in to comment.