All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.eventstreamrpc.DeserializationException Maven / Gradle / Ivy

There is a newer version: 1.21.0
Show newest version
/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

/* This file is part of greengrass-ipc project. */

package software.amazon.awssdk.eventstreamrpc;

/**
 * Thrown when a deserialization exception occurs
 */
public class DeserializationException extends RuntimeException {
    /**
     * Creates a new DeserializationException from the given data
     * @param lexicalData The data that could not be deserialized
     */
    public DeserializationException(Object lexicalData) {
        this(lexicalData, null);
    }

    /**
     * Creates a new DeserializationException from the given data
     * @param lexicalData The data that could not be deserialized
     * @param cause The reason the data could not be deserialized
     */
    public DeserializationException(Object lexicalData, Throwable cause) {
        super("Could not deserialize data: [" + lexicalData.toString() + "]", cause);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy