Exception: PlanMyStuff::IssueFieldsNotEnabledError

Inherits:
Error
  • Object
show all
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

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(message = nil)
  super(message || 'Issue Fields are disabled; set config.issue_fields_enabled = true to enable')
end