Exception: OmfEc::DSL::OEDLCommandException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, msg = nil) ⇒ OEDLCommandException

Returns a new instance of OEDLCommandException.



38
39
40
41
42
# File 'lib/omf_ec/dsl.rb', line 38

def initialize(cmd, msg = nil)
  @cmd = cmd
  msg ||= "Illegal command '#{cmd}' unsupported by OEDL"
  super(msg)
end

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd.



37
38
39
# File 'lib/omf_ec/dsl.rb', line 37

def cmd
  @cmd
end