Exception: NoEncoderError
- Inherits:
-
StandardError
- Object
- StandardError
- NoEncoderError
- Defined in:
- lib/object_hash_rb/error.rb
Overview
Defines an error which is thrown when the user attempts to use an algorithm which is not defined.
If the type you want is standard in Ruby, and doesn’t have an encoder yet, please create an issue on GitHub.
Instance Method Summary collapse
-
#initialize(type = "~") ⇒ NoEncoderError
constructor
A new instance of NoEncoderError.
Constructor Details
#initialize(type = "~") ⇒ NoEncoderError
Returns a new instance of NoEncoderError.
21 22 23 |
# File 'lib/object_hash_rb/error.rb', line 21 def initialize(type = "~") super("Attempted to encode unknown class (got #{type})") end |