Exception: Desiru::Assertions::AssertionError
- Inherits:
-
StandardError
- Object
- StandardError
- Desiru::Assertions::AssertionError
- Defined in:
- lib/desiru/assertions.rb
Overview
Error raised when an assertion fails
Instance Attribute Summary collapse
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
-
#retry_count ⇒ Object
readonly
Returns the value of attribute retry_count.
Instance Method Summary collapse
-
#initialize(message = nil, module_name: nil, retry_count: 0) ⇒ AssertionError
constructor
A new instance of AssertionError.
-
#retriable? ⇒ Boolean
Assertions should trigger module retries.
Constructor Details
#initialize(message = nil, module_name: nil, retry_count: 0) ⇒ AssertionError
Returns a new instance of AssertionError.
10 11 12 13 14 |
# File 'lib/desiru/assertions.rb', line 10 def initialize( = nil, module_name: nil, retry_count: 0) super() @module_name = module_name @retry_count = retry_count end |
Instance Attribute Details
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name.
8 9 10 |
# File 'lib/desiru/assertions.rb', line 8 def module_name @module_name end |
#retry_count ⇒ Object (readonly)
Returns the value of attribute retry_count.
8 9 10 |
# File 'lib/desiru/assertions.rb', line 8 def retry_count @retry_count end |
Instance Method Details
#retriable? ⇒ Boolean
Assertions should trigger module retries
17 18 19 |
# File 'lib/desiru/assertions.rb', line 17 def retriable? true end |