Skip to content

Commit

Permalink
Adicionada declaração da classe InternalServerError. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
rainerborene authored and laerte-guimaraes committed Apr 24, 2019
1 parent 745e5bd commit a12345e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/vindi/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class Error < StandardError
# Raised when Vindi returns a 5xx HTTP status code
ServerError = Class.new(self)

# Raised when Vindi returns the HTTP status code 500
InternalServerError = Class.new(ServerError)

# Raised when Vindi returns the HTTP status code 502
BadGateway = Class.new(ServerError)

Expand Down

0 comments on commit a12345e

Please sign in to comment.