Exception: BitBucket::Error::ClientError
- Inherits:
-
BitBucketError
- Object
- StandardError
- BitBucketError
- BitBucket::Error::ClientError
- Defined in:
- lib/bitbucket_rest_api/error/client_error.rb
Direct Known Subclasses
BadEvents, BlankValue, InvalidOptions, NoEvents, RequiredParams, UnknownValue, Validations
Instance Attribute Summary collapse
-
#problem ⇒ Object
readonly
Returns the value of attribute problem.
-
#resolution ⇒ Object
readonly
Returns the value of attribute resolution.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
Attributes inherited from BitBucketError
#response_headers, #response_message
Instance Method Summary collapse
- #generate_message(attributes) ⇒ Object
-
#initialize(message) ⇒ ClientError
constructor
A new instance of ClientError.
Constructor Details
#initialize(message) ⇒ ClientError
Returns a new instance of ClientError.
8 9 10 |
# File 'lib/bitbucket_rest_api/error/client_error.rb', line 8 def initialize() super() end |
Instance Attribute Details
#problem ⇒ Object (readonly)
Returns the value of attribute problem.
6 7 8 |
# File 'lib/bitbucket_rest_api/error/client_error.rb', line 6 def problem @problem end |
#resolution ⇒ Object (readonly)
Returns the value of attribute resolution.
6 7 8 |
# File 'lib/bitbucket_rest_api/error/client_error.rb', line 6 def resolution @resolution end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
6 7 8 |
# File 'lib/bitbucket_rest_api/error/client_error.rb', line 6 def summary @summary end |
Instance Method Details
#generate_message(attributes) ⇒ Object
12 13 14 15 16 |
# File 'lib/bitbucket_rest_api/error/client_error.rb', line 12 def (attributes) "\nProblem:\n #{attributes[:problem]}" \ "\nSummary:\n #{attributes[:summary]}" \ "\nResolution:\n #{attributes[:resolution]}" end |