Exception: Zeno::MissingArgumentException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zeno/missingargumentexception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_argumentsObject (readonly)

Returns the value of attribute missing_arguments.



21
22
23
# File 'lib/zeno/missingargumentexception.rb', line 21

def missing_arguments
  @missing_arguments
end

#msgObject (readonly)

Returns the value of attribute msg.



21
22
23
# File 'lib/zeno/missingargumentexception.rb', line 21

def msg
  @msg
end

Instance Method Details

#messageObject



31
32
33
# File 'lib/zeno/missingargumentexception.rb', line 31

def message
	@msg
end