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

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

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

package software.amazon.awssdk.eventstreamrpc;

/**
 * Thrown when a serialization exception occurs
 */
public class SerializationException extends RuntimeException {
    /**
     * Creates a new serlization exception
     * @param object The object that caused the serlization exception
     */
    public SerializationException(Object object) {
        this(object, null);
    }

    /**
     * Creates a new serlization exception
     * @param object The object that caused the serlization exception
     * @param cause The cause of the serlization exception
     */
    public SerializationException(Object object, Throwable cause) {
        super("Could not serialize object: " + object.toString(), cause);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy