Skip to Content
ReferenceErrors

Errors

All errors extend SladeIDError and carry a code: string field. Catch by class for broad recovery, branch on code for specifics.

Core errors

ClassCodeThrown whenRecovery
SladeIDErrorCONFIG_INVALIDRequired config missingFix config
SladeIDErrorCONFIG_NOT_SUPPORTEDAn unsupported config option was setDrop the option
SladeIDErrorNO_SAMPLE_PROVIDEDmatchFingerprint called with empty arrayPass at least one sample
CaptureErrorSESSION_ALREADY_STARTEDstart() called twiceCall stop() first
CaptureErrorNOT_IMPLEMENTED_V0Active liveness challenges configuredUse passive antispoof only
CaptureErrorNO_CAMERACamera failed to openCheck permissions, retry
CaptureErrorNO_CANVAS_CTXCanvas 2D context unavailableVerify the environment supports <canvas>
CaptureErrorCAPTURE_FAILEDcanvas.toBlob returned null, or capture canceledRetry
CaptureErrorWORKERS_NOT_INITIALIZEDQuality workers not readyWait for 'started' before calling internals
QualityErrorFACE_QUALITY_FAILEDMax face-quality retries exceededImprove lighting, framing
QualityErrorANTISPOOF_FAILEDAnti-spoof score below threshold for maxAntispoofRetriesConfirm live face, not a photo
QualityErrorQUALITY_GATE_FAILEDFingerprint quality below threshold for max retriesImprove lighting, finger placement
NetworkErrorREQUEST_TIMEOUTBackend took longer than timeoutMsRetry; bump timeoutMs if justified
NetworkErrorNETWORK_ERRORFetch rejected (DNS, CORS, etc.)Check connectivity, CORS config
AuthErrorUNAUTHORIZEDBackend returned 401Issue a fresh ClientSecret
EncryptionErrorNO_WEB_CRYPTOwindow.crypto.subtle unavailableUse HTTPS or localhost
EncryptionErrorNO_BASE64atob / btoa unavailablePolyfill

Fingerprint reader errors

Thrown by the fingerprint reader client when communicating with the SladeID companion application. All extend HwsError and carry a correlationId field for support tickets.

ClassCode
ConnectionErrorREADER_CONNECTION_FAILED
TimeoutErrorREADER_TIMEOUT
ReaderAuthErrorREADER_AUTH_FAILED
DeviceUnavailableErrorREADER_DEVICE_UNAVAILABLE
ReaderValidationErrorREADER_VALIDATION_FAILED
ReaderServerErrorREADER_SERVER_ERROR
BiometricMismatchErrorREADER_BIOMETRIC_MISMATCH

See also