Class: PlanMyStuff::IssueFieldsNotEnabledError
- Inherits:
-
Error
- Object
- Error
- PlanMyStuff::IssueFieldsNotEnabledError
- Defined in:
- lib/plan_my_stuff/errors.rb
Overview
Raised when an Issue Fields API call is attempted while
config.issue_fields_enabled is false. Consumers whose org has not been
admitted to the Issue Fields public preview flip the flag off; this error
surfaces faster (and with a clearer message) than the underlying
GraphQLError that GitHub would otherwise return.
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ IssueFieldsNotEnabledError
constructor
A new instance of IssueFieldsNotEnabledError.
Constructor Details
#initialize(message = nil) ⇒ IssueFieldsNotEnabledError
Returns a new instance of IssueFieldsNotEnabledError.
115 116 117 |
# File 'lib/plan_my_stuff/errors.rb', line 115 def initialize( = nil) super( || 'Issue Fields are disabled; set config.issue_fields_enabled = true to enable') end |