Exception: OmfEc::DSL::OEDLArgumentException

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (OEDLArgumentException) initialize(cmd, arg, msg = nil)

Returns a new instance of OEDLArgumentException



28
29
30
31
32
33
# File 'omf_ec/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

- (Object) arg (readonly)

Returns the value of attribute arg



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

def arg
  @arg
end

- (Object) cmd (readonly)

Returns the value of attribute cmd



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

def cmd
  @cmd
end