Exception: BooticCli::Themes::APITheme::EntityErrors

Inherits:
RequestFailed
  • Object
show all
Defined in:
lib/bootic_cli/themes/api_theme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ EntityErrors

Returns a new instance of EntityErrors.



69
70
71
72
# File 'lib/bootic_cli/themes/api_theme.rb', line 69

def initialize(errors)
  @errors = errors
  super "Entity has errors: #{errors.map(&:field).join(', ')}"
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



68
69
70
# File 'lib/bootic_cli/themes/api_theme.rb', line 68

def errors
  @errors
end