Exception: NoEncoderError

Inherits:
StandardError
  • Object
show all
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

Constructor Details

#initialize(type = "~") ⇒ 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