Packagecom.adobe.mediacore.metadata
Classpublic final class MetadataUtils
InheritanceMetadataUtils Inheritance Object



Public Methods
 MethodDefined 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
Method Detail
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.