Sha256: 405d15c34b6faf9a05f59206521b22725713a34be9b469103802e63b3cf85c25
Contents?: true
Size: 863 Bytes
Versions: 2
Compression:
Stored size: 863 Bytes
Contents
# encoding: utf-8 module Nimbu module Error class NimbuError < StandardError extend ::Nimbu::Utils::Descendants attr_reader :response_message, :response_headers # Initialize a new Nimbu error object. # def initialize(message=$!) if message.respond_to?(:backtrace) super(message.message) @response_message = message else super(message.to_s) end end def backtrace @response_message ? @response_message.backtrace : super end end # NimbuError end # Error end # Nimbu %w( service_error bad_request unauthorized forbidden not_found not_acceptable unprocessable_entity internal_server_error service_unavailable client_error invalid_options required_params unknown_value validations ).each do |error| require "nimbu-api/errors/#{error}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nimbu-api-0.0.2 | lib/nimbu-api/errors.rb |
nimbu-api-0.0.1 | lib/nimbu-api/errors.rb |