Sha256: 30e57b16af377036b8edd12ef7e3e26d176e3d2af6e7b962a7fe597b238c1e88
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true module BitBucket #:nodoc # Raised when BitBucket returns any of the HTTP status codes module Error class ServiceError < BitBucketError attr_accessor :http_headers def initialize(env) super(generate_message(env)) @http_headers = env[:response_headers] end def generate_message(env) "#{env[:method].to_s.upcase} #{env[:url]}: #{env[:status]} #{env[:body]}" end end end # Error end # BitBucket
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitbuckets-0.2.0 | lib/bitbucket_rest_api/error/service_error.rb |