Exception: Dobby::Package::FieldRequiredError

Inherits:
Error
  • Object
show all
Defined in:
lib/dobby/package.rb

Overview

A required field was missing during initialization

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ FieldRequiredError

Returns a new instance of FieldRequiredError.



17
18
19
20
# File 'lib/dobby/package.rb', line 17

def initialize(field)
  super("Missing required field '#{field}'")
  @field = field
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



16
17
18
# File 'lib/dobby/package.rb', line 16

def args
  @args
end

#fieldObject (readonly)

Returns the value of attribute field.



16
17
18
# File 'lib/dobby/package.rb', line 16

def field
  @field
end