Exception: PlanMyStuff::PendingApprovalsError
- Inherits:
-
ValidationError
- Object
- StandardError
- Error
- ValidationError
- PlanMyStuff::PendingApprovalsError
- Defined in:
- lib/plan_my_stuff/errors.rb
Overview
Raised by PlanMyStuff::Pipeline forward transitions when the linked Issue has any pending manager approvals.
Instance Attribute Summary collapse
- #issue ⇒ PlanMyStuff::Issue? readonly
- #pending_count ⇒ Integer readonly
Attributes inherited from ValidationError
Instance Method Summary collapse
-
#initialize(message = nil, issue: nil, pending_count: 0) ⇒ PendingApprovalsError
constructor
A new instance of PendingApprovalsError.
Constructor Details
#initialize(message = nil, issue: nil, pending_count: 0) ⇒ PendingApprovalsError
Returns a new instance of PendingApprovalsError.
122 123 124 125 126 |
# File 'lib/plan_my_stuff/errors.rb', line 122 def initialize( = nil, issue: nil, pending_count: 0) @issue = issue @pending_count = pending_count super( || ) end |
Instance Attribute Details
#issue ⇒ PlanMyStuff::Issue? (readonly)
113 114 115 |
# File 'lib/plan_my_stuff/errors.rb', line 113 def issue @issue end |
#pending_count ⇒ Integer (readonly)
116 117 118 |
# File 'lib/plan_my_stuff/errors.rb', line 116 def pending_count @pending_count end |