Exception: BitBucket::Error::ClientError

Inherits:
BitBucketError show all
Defined in:
lib/bitbucket_rest_api/error/client_error.rb

Instance Attribute Summary collapse

Attributes inherited from BitBucketError

#response_headers, #response_message

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ClientError

Returns a new instance of ClientError.



9
10
11
# File 'lib/bitbucket_rest_api/error/client_error.rb', line 9

def initialize(message)
  super(message)
end

Instance Attribute Details

#problemObject (readonly)

Returns the value of attribute problem.



7
8
9
# File 'lib/bitbucket_rest_api/error/client_error.rb', line 7

def problem
  @problem
end

#resolutionObject (readonly)

Returns the value of attribute resolution.



7
8
9
# File 'lib/bitbucket_rest_api/error/client_error.rb', line 7

def resolution
  @resolution
end

#summaryObject (readonly)

Returns the value of attribute summary.



7
8
9
# File 'lib/bitbucket_rest_api/error/client_error.rb', line 7

def summary
  @summary
end

Instance Method Details

#generate_message(attributes) ⇒ Object



13
14
15
16
17
# File 'lib/bitbucket_rest_api/error/client_error.rb', line 13

def generate_message(attributes)
  "\nProblem:\n #{attributes[:problem]}"+
  "\nSummary:\n #{attributes[:summary]}"+
  "\nResolution:\n #{attributes[:resolution]}"
end