Exception: Unitsml::Errors::UnsupportedPayloadTypeError
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- Unitsml::Errors::UnsupportedPayloadTypeError
- Defined in:
- lib/unitsml/errors/unsupported_payload_type_error.rb
Instance Method Summary collapse
-
#initialize(actual_class) ⇒ UnsupportedPayloadTypeError
constructor
A new instance of UnsupportedPayloadTypeError.
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 |