Sha256: c100fef85fb1a3ae44c83b0bb6386b185887e0a1eff570c97490a4d79b3c90c3
Contents?: true
Size: 485 Bytes
Versions: 21
Compression:
Stored size: 485 Bytes
Contents
# encoding: utf-8 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].to_s}: #{env[:status]} #{env[:body]}" end end end # Error end # BitBucket
Version data entries
21 entries across 21 versions & 5 rubygems