Sha256: 8ef2b0efac88b804108460f846dfc4a341ea63ab91c97582ba261d60e92323f3
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
# Public: This error is raised when a web request to the Trivia Crack API is # unsuccessful. module TriviaCrack module Errors class RequestError < StandardError # Public: The HTTP status code returned by the Trivia Crack server. attr_reader :code # Public: Initializes a RequestError. # # code - The HTTP status code returned by the Trivia Crack server. def initialize(code) @code = code end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
triviacrack-0.2.0 | lib/triviacrack/errors/request_error.rb |
triviacrack-0.1.0 | lib/triviacrack/errors/request_error.rb |