Canvas Component Error Codes

NOTE

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

103701 Parameter Error

Error Message

Parameter error.

Description

This error code is reported when invalid or incorrect parameters are passed to the API.

Possible Causes

Refer to the specific documentation of the API that triggers this error.

Solution

Provide correct parameters as specified in the API documentation.

103702 Drawing Context Is Not Bound to Any Canvas Component

Error Message

The drawingContext is not bound to a canvas component.

Description

This error code is reported when the current drawing context is not bound to any Canvas component.

Possible Causes

The current drawing context is not bound to any Canvas component.

Solution

Bind the drawing context to a Canvas component and then call the getContext2DFromDrawingContext method.

103704 OffscreenCanvas Detached from the Tree

Error Message

OffscreenCanvas object is detached.

Description

This error code is reported when OffscreenCanvas is detached from the tree.

Possible Causes

The current operation is not supported because OffscreenCanvas has been detached from the tree.

Solution

Attach the current node to the tree before performing the operation.