Exception: Zeno::MissingArgumentException
- Inherits:
-
StandardError
- Object
- StandardError
- Zeno::MissingArgumentException
- Defined in:
- lib/zeno/missingargumentexception.rb
Instance Attribute Summary collapse
-
#missing_arguments ⇒ Object
readonly
Returns the value of attribute missing_arguments.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(missing, msg = nil) ⇒ MissingArgumentException
constructor
A new instance of MissingArgumentException.
- #message ⇒ Object
Constructor Details
#initialize(missing, msg = nil) ⇒ MissingArgumentException
Returns a new instance of MissingArgumentException.
26 27 28 29 |
# File 'lib/zeno/missingargumentexception.rb', line 26 def initialize(missing, msg = nil) @msg = msg || "Mandatory arguments are missing!" @missing_arguments = missing end |
Instance Attribute Details
#missing_arguments ⇒ Object (readonly)
Returns the value of attribute missing_arguments.
21 22 23 |
# File 'lib/zeno/missingargumentexception.rb', line 21 def missing_arguments @missing_arguments end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
21 22 23 |
# File 'lib/zeno/missingargumentexception.rb', line 21 def msg @msg end |
Instance Method Details
#message ⇒ Object
31 32 33 |
# File 'lib/zeno/missingargumentexception.rb', line 31 def @msg end |