toMetadata

public static Metadata toMetadata(Error error)

Returns the Metadata, containing the Error as a byte array.

Return

the metadata containing error

Parameters

error

the error to convert