software.amazon.awssdk.eventstreamrpc.InvalidDataException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-iot-device-sdk Show documentation
Show all versions of aws-iot-device-sdk Show documentation
Java bindings for the AWS IoT Core Service
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
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