Exception: Familia::NotDistinguishableError

Inherits:
HorreumError show all
Defined in:
lib/familia/errors.rb

Overview

Raised when a value cannot be converted to a distinguishable string representation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ NotDistinguishableError

Returns a new instance of NotDistinguishableError.



196
197
198
199
# File 'lib/familia/errors.rb', line 196

def initialize(value)
  @value = value
  super
end

Instance Attribute Details

#value ⇒ Object (readonly)

Returns the value of attribute value.



194
195
196
# File 'lib/familia/errors.rb', line 194

def value
  @value
end

Instance Method Details

#message ⇒ Object



201
202
203
# File 'lib/familia/errors.rb', line 201

def message
  "Cannot represent #{value}<#{value.class}> as a string"
end