Skip to main content

Variable: MONITOR_ERRORS

const MONITOR_ERRORS: { CANNOT_REMOVE_LAST: "Cannot remove the last monitor from a site. Use site removal instead."; CONFIGURATION_INVALID: "Monitor configuration is invalid"; FAILED_TO_ADD: "Failed to add monitor"; FAILED_TO_REMOVE: "Failed to remove monitor"; FAILED_TO_UPDATE: "Failed to update monitor"; FAILED_TO_UPDATE_INTERVAL: "Failed to update check interval"; INVALID_ID: "Monitor ID is invalid or missing"; INVALID_INTERVAL: "Check interval must be a positive number"; INVALID_RETRY_ATTEMPTS: "Retry attempts must be a non-negative number"; INVALID_TIMEOUT: "Timeout must be a positive number"; NOT_FOUND: "Monitor not found"; TYPE_NOT_SUPPORTED: "Monitor type is not supported"; }

Defined in: shared/utils/errorCatalog.ts:77

Monitor-related error messages.

Type Declarationโ€‹

CANNOT_REMOVE_LASTโ€‹

readonly CANNOT_REMOVE_LAST: "Cannot remove the last monitor from a site. Use site removal instead." = "Cannot remove the last monitor from a site. Use site removal instead."

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when trying to remove the last monitor from a site

CONFIGURATION_INVALIDโ€‹

readonly CONFIGURATION_INVALID: "Monitor configuration is invalid" = "Monitor configuration is invalid"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when monitor configuration is invalid

FAILED_TO_ADDโ€‹

readonly FAILED_TO_ADD: "Failed to add monitor" = "Failed to add monitor"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when attempting to add a monitor fails

FAILED_TO_REMOVEโ€‹

readonly FAILED_TO_REMOVE: "Failed to remove monitor" = "Failed to remove monitor"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when attempting to remove a monitor fails

FAILED_TO_UPDATEโ€‹

readonly FAILED_TO_UPDATE: "Failed to update monitor" = "Failed to update monitor"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when attempting to update a monitor fails

FAILED_TO_UPDATE_INTERVALโ€‹

readonly FAILED_TO_UPDATE_INTERVAL: "Failed to update check interval" = "Failed to update check interval"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when attempting to update check interval fails

INVALID_IDโ€‹

readonly INVALID_ID: "Monitor ID is invalid or missing" = "Monitor ID is invalid or missing"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when monitor ID is invalid or missing

INVALID_INTERVALโ€‹

readonly INVALID_INTERVAL: "Check interval must be a positive number" = "Check interval must be a positive number"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when check interval is invalid

INVALID_RETRY_ATTEMPTSโ€‹

readonly INVALID_RETRY_ATTEMPTS: "Retry attempts must be a non-negative number" = "Retry attempts must be a non-negative number"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when retry attempts value is invalid

INVALID_TIMEOUTโ€‹

readonly INVALID_TIMEOUT: "Timeout must be a positive number" = "Timeout must be a positive number"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when timeout value is invalid

NOT_FOUNDโ€‹

readonly NOT_FOUND: "Monitor not found" = "Monitor not found"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when a requested monitor cannot be found

TYPE_NOT_SUPPORTEDโ€‹

readonly TYPE_NOT_SUPPORTED: "Monitor type is not supported" = "Monitor type is not supported"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error when monitor type is not supported

Remarksโ€‹

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error messages for monitor operations, configuration validation, and monitor lifecycle management.