MessageTypeMismatchException


public final class MessageTypeMismatchException extends RuntimeException


Indicates an attempt to access the data of a Message object as the wrong type.

This exception is thrown by accessor methods in the Message class when the message's actual content type does not match the requested type.

Summary

Public constructors

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public constructors

MessageTypeMismatchException

Added in 1.1.0-alpha02
public MessageTypeMismatchException(@NonNull String message)