ErrorCategory

Type: String

The category indicates the area of Fonto where an error occurred.

Current supported values are exposed as static as well as instance properties on ErrorManager.

Static properties

CMS_REQUEST_FAILED

Type: ErrorCategory

A request to the CMS returned an error.

This could be part of normal operations. Please refer to the CMS connectors API documentation for details.

The CmsErrorData for these errors contains details about the request. If the CMS returned an error, the error object will contain a status property with the HTTP status code that was returned.

DOCUMENT_SAVE_FAILED

Type: ErrorCategory

Saving one or more documents failed due to an unrecoverable error.

These errors do not currently provide any ErrorData.

INITIAL_DOCUMENT_LOAD_FAILED

Type: ErrorCategory

Fonto failed to load all of its initial documents (i.e., those passed in the scope parameter).

These errors do not currently provide any ErrorData.

OPERATION_FAILED

Type: ErrorCategory

An operation encountered an error during its execution or state computation.

These errors do not currently provide any ErrorData.

UI_FAILED

Type: ErrorCategory

A UI component failed to render or update correctly.

This occurs if an error is caught by the editor's root React components. The UiErrorData contains the component stack in which the error occurred.

UNKNOWN

Type: ErrorCategory

The origin of the error can not be determined.