Exception: OmfEc::DSL::OEDLArgumentException

Inherits:
OEDLException
  • Object
show all
Defined in:
lib/omf_ec/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, arg, msg = nil) ⇒ OEDLArgumentException

Returns a new instance of OEDLArgumentException.



28
29
30
31
32
33
# File 'lib/omf_ec/dsl.rb', line 28

def initialize(cmd, arg, msg = nil)
  @cmd = cmd
  @arg = arg
  msg ||= "Illegal value for argument '#{arg}' in command '#{cmd}'"
  super(msg)
end

Instance Attribute Details

#argObject (readonly)

Returns the value of attribute arg.



27
28
29
# File 'lib/omf_ec/dsl.rb', line 27

def arg
  @arg
end

#cmdObject (readonly)

Returns the value of attribute cmd.



27
28
29
# File 'lib/omf_ec/dsl.rb', line 27

def cmd
  @cmd
end