files/en-us/web/api/mediaerror/index.md
{{APIRef("HTML DOM")}}
The MediaError interface represents an error which occurred while handling media in an HTML media element based on {{domxref("HTMLMediaElement")}}, such as {{HTMLElement("audio")}} or {{HTMLElement("video")}}.
A MediaError object describes the error in general terms using a numeric code categorizing the kind of error, and a message, which provides specific diagnostics about what went wrong.
This interface doesn't inherit any properties.
"").This interface doesn't implement or inherit any methods, and has none of its own.
{{Specifications}}
{{Compat}}