Exception: PgVerify::Model::Validation::EmptyStateSetError

Inherits:
Core::Error
  • Object
show all
Defined in:
lib/pg-verify/model/validation/errors.rb

Instance Method Summary collapse

Methods inherited from Core::Error

#to_formatted

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

#formattedObject



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