Exception: UnknownAlgorithmError

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 algorithm you want isn’t implemented, please create an issue on GitHub. I can add the library that implements it as an optional dependency.

Instance Method Summary collapse

Constructor Details

#initialize(algorithm = "~") ⇒ UnknownAlgorithmError

Returns a new instance of UnknownAlgorithmError.



10
11
12
# File 'lib/object_hash_rb/error.rb', line 10

def initialize(algorithm = "~")
  super("Attempted to hash with unknown algorithm (got #{algorithm})")
end