Sha256: cf4687c3f99fe5434e7f9fbbbe7deac28debcb9a4e25e03cf190c18ac425aeb7
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true module BitBucket #:nodoc # Raised when BitBucket returns the HTTP status code 404 module Error class ClientError < BitBucketError attr_reader :problem, :summary, :resolution def initialize(message) super(message) end def generate_message(attributes) "\nProblem:\n #{attributes[:problem]}" \ "\nSummary:\n #{attributes[:summary]}" \ "\nResolution:\n #{attributes[:resolution]}" 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/client_error.rb |