Sha256: 4a4349529bc0184c44c92bf7ea998109eb9f0f9348d6518d4e4ae60a5e736a6f
Contents?: true
Size: 375 Bytes
Versions: 1
Compression:
Stored size: 375 Bytes
Contents
require 'minato_error_handler' module MinatoRubyApiClient class ApiError < MinatoErrorHandler::Errors::ExternalError attr_reader :status_code def initialize(res: nil, req: nil, status_code: 500) super(req: req, res: res) @status_code = status_code end def message "An error occurred while communicating with the API." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minato_ruby_api_client-0.2.2 | lib/minato_ruby_api_client/api_error.rb |