MetadataConverter

public final class MetadataConverter

Serves as a converter from Error to Metadata and vice versa.

Functions

Link copied to clipboard
public static Optional<Error> toError(Metadata metadata)
Returns the Error extracted from the Metadata.
Link copied to clipboard
public static Metadata toMetadata(Error error)
Returns the Metadata, containing the Error as a byte array.