Exception: Inferno::Exceptions::BadSessionDataType

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/inferno/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, expected_class, actual_class) ⇒ BadSessionDataType

Returns a new instance of BadSessionDataType.



80
81
82
# File 'lib/inferno/exceptions.rb', line 80

def initialize(name, expected_class, actual_class)
  super("Expected '#{name}' to be a #{expected_class.name}, but found a #{actual_class.name}.")
end