MessageType

sealed class MessageType

Common framework message information parsed from headers

Inheritors

Types

Link copied to clipboard
data class Error(val errorCode: String, val message: String? = null) : MessageType

Corresponds to the error message type. Errors are like exceptions, but they are un-modeled and have a fixed set of fields:

Link copied to clipboard
data class Event(val shapeType: String, val contentType: String? = null) : MessageType

Corresponds to the event message type. All events include the headers:

Link copied to clipboard
data class Exception(val shapeType: String, val contentType: String? = null) : MessageType

Corresponds to the exception message type. NOTE: Exceptions are mapped directly to the payload. There is no way to map event headers for exceptions.

Link copied to clipboard
data class SdkUnknown(val messageType: String) : MessageType

Catch all for unknown message types outside of event, exception, or error