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

software.amazon.awssdk.eventstreamrpc.InvalidDataException 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;

import software.amazon.awssdk.crt.eventstream.MessageType;

/**
 * An exception for invalid/unexpected data
 */
public class InvalidDataException extends RuntimeException {
    /**
     * Constructs a new InvalidDataException with the given MessageType, whose name will
     * be added to the exception.
     * @param unexpectedType The MessageType that caused the exception
     */
    public InvalidDataException(MessageType unexpectedType) {
        super(String.format("Unexpected message type received: %s", unexpectedType.name()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy