Sha256: 787ecd6ef2ecc8e57820bcb3a115a906c7434ee44fa1c1a76f8fcb94dbb583dc
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true module CoinMarketCapitalization # BadRequestException class BadRequestException < StandardError def initialize(json) puts json["status"]["error_message"] || super end end # UnauthorizedException class UnauthorizedException < StandardError def initialize(json) puts json["status"]["error_message"] || super end end # PaymentRequiredException class PaymentRequiredException < StandardError def initialize(json) puts json["status"]["error_message"] || super end end # ForbiddenException class ForbiddenException < StandardError def initialize(json) puts json["status"]["error_message"] || super end end # TooManyRequestsException class TooManayRequestsException < StandardError def initialize(json) puts json["status"]["error_message"] || super end end # InternalServerError class ServerException < StandardError def initialize(json) puts json["status"]["error_message"] || super end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coin_market_capitalization-0.1.2 | lib/coin_market_capitalization/exceptions.rb |
coin_market_capitalization-0.1.1 | lib/coin_market_capitalization/exceptions.rb |