Package | com.adobe.mediacore.metadata |
Class | public final class MetadataUtils |
Inheritance | MetadataUtils ![]() |
Method | Defined By | ||
---|---|---|---|
serializeError(error:Error, metadata:Metadata):void [static]
Serializes error information in a metadata objects by copying
error id, error messages and error name in a predefined
metadata keys (ERROR_ID, ERROR_MESSAGE, ERROR_NAME). | MetadataUtils |
serializeError | () | method |
public static function serializeError(error:Error, metadata:Metadata):void
Serializes error information in a metadata objects by copying error id, error messages and error name in a predefined metadata keys (ERROR_ID, ERROR_MESSAGE, ERROR_NAME). Caution must be taken where serializing multiple errors to the same metadata node as only the last error properties will be kept.
Parameters
error:Error — error to be serialized.
| |
metadata:Metadata — metadata where error properties will be stored.
|