An error code representing the cause of the error.
error
constant
(non-null Error, non-null Object, or undefined)
The error object. This could be an Error object (for example, if an
Error was thrown in an event handler) or an object with error
information (for example, if the receiver received an invalid command).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003ecast.framework.events.ErrorEvent\u003c/code\u003e provides data for errors occurring within the Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003edetailedErrorCode\u003c/code\u003e, \u003ccode\u003eerror\u003c/code\u003e, \u003ccode\u003ereason\u003c/code\u003e, and \u003ccode\u003eseverity\u003c/code\u003e for detailed error information.\u003c/p\u003e\n"],["\u003cp\u003eThese properties help developers understand the cause and severity of errors, aiding in debugging and error handling.\u003c/p\u003e\n"],["\u003cp\u003eConstructor parameters allow for setting these properties when creating a new \u003ccode\u003eErrorEvent\u003c/code\u003e instance.\u003c/p\u003e\n"]]],["The `ErrorEvent` class provides data for `ERROR` events within the cast framework. It's constructed with optional parameters: `detailedErrorCode`, `error` (an object or Error), `reason`, and `severity`. Its properties include the `detailedErrorCode` (identifying the error's cause), the `error` object (either an Error instance or an object with error info), `reason` (the error's reason), and `severity` (the error's level of importance). These elements allow for comprehensive error reporting.\n"],null,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).ErrorEvent \nclass static\n\nEvent data for a `cast.framework.events.EventType.ERROR` event.\n\nConstructor\n\nErrorEvent\n\nnew\nErrorEvent(detailedErrorCode, error, reason, severity)\n\n| Parameter ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| detailedErrorCode | Optional [cast.framework.events.DetailedErrorCode](/cast/docs/reference/web_receiver/cast.framework.events#.DetailedErrorCode) Value must not be null. |\n| error | Optional Object Value must not be null. |\n| reason | Optional [cast.framework.messages.ErrorReason](/cast/docs/reference/web_receiver/cast.framework.messages#.ErrorReason) Value must not be null. |\n| severity | Optional [cast.framework.events.ErrorSeverity](/cast/docs/reference/web_receiver/cast.framework.events#.ErrorSeverity) Value must not be null. |\n\nProperties\n\ndetailedErrorCode \nconstant\n\n(non-null [cast.framework.events.DetailedErrorCode](/cast/docs/reference/web_receiver/cast.framework.events#.DetailedErrorCode) or undefined)\n\nAn error code representing the cause of the error.\n\nerror \nconstant\n\n(non-null Error, non-null Object, or undefined)\n\nThe error object. This could be an `Error` object (for example, if an\n`Error` was thrown in an event handler) or an object with error\ninformation (for example, if the receiver received an invalid command).\n\nreason\n\n(non-null [cast.framework.messages.ErrorReason](/cast/docs/reference/web_receiver/cast.framework.messages#.ErrorReason) or undefined)\n\nOptional error reason.\n\nseverity\n\n(non-null [cast.framework.events.ErrorSeverity](/cast/docs/reference/web_receiver/cast.framework.events#.ErrorSeverity) or undefined)\n\nOptional error severity."]]