Exception: Assertion::InvalidError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Assertion::InvalidError
- Defined in:
- lib/assertion/invalid_error.rb
Overview
The exception to be raised by invalid assertions’ ‘validate!` method call
Class Attribute Summary collapse
-
.messages ⇒ Array<String>
readonly
The list of error messages.
Class Method Summary collapse
- .initialize(*messages) ⇒ Object
- .inspect ⇒ Object
-
.new(*names) ⇒ Assertion::InvalidError
private
Creates an exception instance.
Class Attribute Details
.messages ⇒ Array<String> (readonly)
Returns The list of error messages.
31 32 33 |
# File 'lib/assertion/invalid_error.rb', line 31 def @messages end |
Class Method Details
.initialize(*messages) ⇒ Object
22 23 24 25 |
# File 'lib/assertion/invalid_error.rb', line 22 def initialize(*) @messages = .flatten.freeze freeze end |
.inspect ⇒ Object
34 35 36 |
# File 'lib/assertion/invalid_error.rb', line 34 def inspect "<#{self} @messages=#{}>" end |
.new(*names) ⇒ Assertion::InvalidError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creates an exception instance
|
# File 'lib/assertion/invalid_error.rb', line 11
|