Skip to main content

RegistrationError

Admin Docs


Class: RegistrationError

Defined in: src/hooks/auth/useRegistration.ts:19

Error thrown when registration validation fails. Callers can use error.code with t(error.code) for translated messages.

Extends

  • Error

Constructors

Constructor

new RegistrationError(code, message?): RegistrationError

Defined in: src/hooks/auth/useRegistration.ts:20

Parameters

code

RegistrationErrorCodeType

message?

string

Returns

RegistrationError

Overrides

Error.constructor

Properties

code

readonly code: RegistrationErrorCodeType

Defined in: src/hooks/auth/useRegistration.ts:21