Exception: PgVerify::Model::Validation::EmptyStateSetError
- Inherits:
-
Core::Error
- Object
- StandardError
- Core::Error
- PgVerify::Model::Validation::EmptyStateSetError
- Defined in:
- lib/pg-verify/model/validation/errors.rb
Instance Method Summary collapse
- #formatted ⇒ Object
-
#initialize(component) ⇒ EmptyStateSetError
constructor
A new instance of EmptyStateSetError.
Methods inherited from Core::Error
Constructor Details
#initialize(component) ⇒ EmptyStateSetError
Returns a new instance of EmptyStateSetError.
106 107 108 |
# File 'lib/pg-verify/model/validation/errors.rb', line 106 def initialize(component) @component = component end |
Instance Method Details
#formatted ⇒ Object
109 110 111 112 113 114 |
# File 'lib/pg-verify/model/validation/errors.rb', line 109 def formatted() title = "Empty state set" body = "The graph component '#{@component.name.to_s.c_cmp}' does not define any states." hint = "Each graph component needs at least one state" return title, body, hint end |