class ActiveSupport::Messages::Codec

def deserialize(serialized)

def deserialize(serialized)
  serializer.load(serialized)
rescue StandardError => error
  throw :invalid_message_serialization, error
end