Exception: KXI::Exceptions::VerbExpectedException
- Inherits:
-
Exception
- Object
- Exception
- KXI::Exceptions::VerbExpectedException
- Defined in:
- lib/kxi/exceptions/verb_expected_exception.rb
Overview
Raised when specific verb was expected
Instance Method Summary collapse
-
#initialize(verbs) ⇒ VerbExpectedException
constructor
Instantiates the CLI::VerbExpectedException class.
-
#verbs ⇒ Array<String>
Gets array of verbs that were expected.
Constructor Details
#initialize(verbs) ⇒ VerbExpectedException
Instantiates the CLI::VerbExpectedException class
15 16 17 18 |
# File 'lib/kxi/exceptions/verb_expected_exception.rb', line 15 def initialize(verbs) super("Expected verb! (#{verbs.join(', ')})") @verbs = verbs end |
Instance Method Details
#verbs ⇒ Array<String>
Gets array of verbs that were expected
9 10 11 |
# File 'lib/kxi/exceptions/verb_expected_exception.rb', line 9 def verbs @verbs end |