Sha256: cb7ab39935a6a3ce1294014b6477463fb55e4abeb9ad20774919086255ad5886

Contents?: true

Size: 664 Bytes

Versions: 8

Compression:

Stored size: 664 Bytes

Contents

# encoding: utf-8

module BitBucket
  module Error
    class BitBucketError < StandardError
      attr_reader :response_message, :response_headers

      def initialize(message)
        super message
        @response_message = message
      end

#       def inspect
#         %(#<#{self.class}>)
#       end
    end
  end # Error
end # BitBucket

%w[
  service_error
  not_found
  forbidden
  bad_request
  unauthorized
  service_unavailable
  internal_server_error
  unprocessable_entity
  client_error
  invalid_options
  required_params
  unknown_value
  bad_events
  no_events
  blank_value
].each do |error|
  require "bitbucket_rest_api/error/#{error}"
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
zz_bitbucket_rest_api-0.1.11 lib/bitbucket_rest_api/error.rb
zz_bitbucket_rest_api-0.1.10 lib/bitbucket_rest_api/error.rb
zz_bitbucket_rest_api-0.1.9 lib/bitbucket_rest_api/error.rb
zz_bitbucket_rest_api-0.1.8 lib/bitbucket_rest_api/error.rb
bitbucket_rest_api2-0.9.1 lib/bitbucket_rest_api/error.rb
bitbucket_rest_api2-0.2.2 lib/bitbucket_rest_api/error.rb
bitbucket_rest_api2-0.2.1 lib/bitbucket_rest_api/error.rb
bitbucket_rest_api2-0.2.0 lib/bitbucket_rest_api/error.rb