Exception: BitBucket::Error::InvalidOptions
- Inherits:
-
ClientError
- Object
- StandardError
- BitBucketError
- ClientError
- BitBucket::Error::InvalidOptions
- Defined in:
- lib/bitbucket_rest_api/error/invalid_options.rb
Instance Attribute Summary
Attributes inherited from ClientError
#problem, #resolution, #summary
Attributes inherited from BitBucketError
#response_headers, #response_message
Instance Method Summary collapse
-
#initialize(invalid, valid) ⇒ InvalidOptions
constructor
A new instance of InvalidOptions.
Methods inherited from ClientError
Constructor Details
#initialize(invalid, valid) ⇒ InvalidOptions
Returns a new instance of InvalidOptions.
6 7 8 9 10 11 12 13 14 |
# File 'lib/bitbucket_rest_api/error/invalid_options.rb', line 6 def initialize(invalid, valid) super( ( problem: "Invalid option #{invalid.keys.join(', ')} provided for this request.", summary: 'BitBucket gem checks the request parameters passed to ensure that github api is not hit unnecessairly and to fail fast.', resolution: "Valid options are: #{valid.join(', ')}, make sure these are the ones you are using" ) ) end |