Skip to main content

ERROR_CODES

Since version 4.0.0

Error codes of View360Error

const ERROR_CODES: {
CANVAS_NOT_FOUND: 3;
ELEMENT_NOT_FOUND: 2;
FAILED_CREATE_CONTEXT_2D: 5;
FAILED_LINKING_PROGRAM: 7;
INSUFFICIENT_ARGS: 8;
PROVIDE_PROJECTION_FIRST: 6;
WEBGL_NOT_SUPPORTED: 4;
WRONG_OPTION: 1;
WRONG_TYPE: 0
}

Properties

Couldn't find canvas element inside the given container element.

The element with given CSS selector does not exist

Failed creating canvas 2D context

Failed linking WebGL program. Only can be thrown when debug is true.

Arguments are not sufficient for the given property.

init() is called before setting projection

The browser does not support WebGL

The given value is not a supported option

The given value's type is not expected

Properties

CANVAS_NOT_FOUND

>=4.0.0
CANVAS_NOT_FOUND

3

Couldn't find canvas element inside the given container element.

ELEMENT_NOT_FOUND

>=4.0.0
ELEMENT_NOT_FOUND

2

The element with given CSS selector does not exist

FAILED_CREATE_CONTEXT_2D

>=4.0.0
FAILED_CREATE_CONTEXT_2D

5

Failed creating canvas 2D context

FAILED_LINKING_PROGRAM

>=4.0.0
FAILED_LINKING_PROGRAM

7

Failed linking WebGL program. Only can be thrown when debug is true.

INSUFFICIENT_ARGS

>=4.0.0
INSUFFICIENT_ARGS

8

Arguments are not sufficient for the given property.

PROVIDE_PROJECTION_FIRST

>=4.0.0
PROVIDE_PROJECTION_FIRST

6

init() is called before setting projection

WEBGL_NOT_SUPPORTED

>=4.0.0
WEBGL_NOT_SUPPORTED

4

The browser does not support WebGL

WRONG_OPTION

>=4.0.0
WRONG_OPTION

1

The given value is not a supported option

WRONG_TYPE

>=4.0.0
WRONG_TYPE

0

The given value's type is not expected