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.



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

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.



25
26
27
# File 'lib/omf_ec/dsl.rb', line 25

def arg
  @arg
end

#cmdObject (readonly)

Returns the value of attribute cmd.



25
26
27
# File 'lib/omf_ec/dsl.rb', line 25

def cmd
  @cmd
end