Exception: OmfEc::DSL::OEDLArgumentException
- Inherits:
-
OEDLException
- Object
- StandardError
- OEDLException
- OmfEc::DSL::OEDLArgumentException
- Defined in:
- omf_ec/lib/omf_ec/dsl.rb
Instance Attribute Summary (collapse)
-
- (Object) arg
readonly
Returns the value of attribute arg.
-
- (Object) cmd
readonly
Returns the value of attribute cmd.
Instance Method Summary (collapse)
-
- (OEDLArgumentException) initialize(cmd, arg, msg = nil)
constructor
A new instance of OEDLArgumentException.
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 |