Exception: Unitsml::Errors::UnsupportedPayloadTypeError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/unitsml/errors/unsupported_payload_type_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(actual_class) ⇒ UnsupportedPayloadTypeError

Returns a new instance of UnsupportedPayloadTypeError.



6
7
8
9
10
# File 'lib/unitsml/errors/unsupported_payload_type_error.rb', line 6

def initialize(actual_class)
  super("[unitsml] Error: Unsupported Opal payload type " \
        "#{actual_class}. PayloadGenerator only emits Hash, Array, " \
        "String, Symbol, Integer, Float, true, false, and nil.")
end