Exception: Olaf::MissingArgumentsError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Olaf::MissingArgumentsError
- Defined in:
- lib/olaf/errors.rb
Instance Method Summary collapse
-
#initialize(olaf_query) ⇒ MissingArgumentsError
constructor
A new instance of MissingArgumentsError.
- #metadata ⇒ Object
Constructor Details
#initialize(olaf_query) ⇒ MissingArgumentsError
Returns a new instance of MissingArgumentsError.
3 4 5 6 7 8 |
# File 'lib/olaf/errors.rb', line 3 def initialize(olaf_query) @olaf_query = olaf_query msg = "Missing arguments: #{olaf_query.missing_arguments}" super(msg) end |
Instance Method Details
#metadata ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/olaf/errors.rb', line 10 def { query: @olaf_query.class.name, defined_arguments: @olaf_query.defined_arguments, missing_arguments: @olaf_query.missing_arguments, arguments: @olaf_query.variables } end |