Exception: Familia::NotDistinguishableError
- Inherits:
-
HorreumError
- Object
- RuntimeError
- Problem
- HorreumError
- Familia::NotDistinguishableError
- Defined in:
- lib/familia/errors.rb
Overview
Raised when a value cannot be converted to a distinguishable string representation
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ NotDistinguishableError
constructor
A new instance of NotDistinguishableError.
- #message ⇒ Object
Constructor Details
#initialize(value) ⇒ NotDistinguishableError
Returns a new instance of NotDistinguishableError.
54 55 56 57 |
# File 'lib/familia/errors.rb', line 54 def initialize(value) @value = value super end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
52 53 54 |
# File 'lib/familia/errors.rb', line 52 def value @value end |
Instance Method Details
#message ⇒ Object
59 60 61 |
# File 'lib/familia/errors.rb', line 59 def "Cannot represent #{value}<#{value.class}> as a string" end |