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_names, actual_class) ⇒ BadSessionDataType

Returns a new instance of BadSessionDataType.



112
113
114
# File 'lib/inferno/exceptions.rb', line 112

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