public final class SerializationAPI
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
serializeToText(MessageWrapper message, boolean throwOnError)
Serializes the wrapped message to text.
|
public static java.lang.String serializeToText(MessageWrapper message, boolean throwOnError) throws SerializationException
false, or have its errors reset otherwise.message - the message to serialize.throwOnError - true to throw upon encountering the first error, false to keep serializing and collect as many errors as possible before eventually having to abort.SerializationException - for any serialization errors (typically thrown when throwOnError is true).