Type Alias: ErrorCode
Gala Launchpad SDK 9.0.0-rc.5 / index / ErrorCode
Type Alias: ErrorCode
ErrorCode = typeof
ERROR_CODES[keyof typeofERROR_CODES]
Defined in: packages/launchpad-sdk/dist/utils/errors.d.ts:79
Type for error codes - use for type-safe error code handling
Example
function handleError(code: ErrorCode) {
switch (code) {
case ERROR_CODES.REQUIRED:
return 'This field is required';
case ERROR_CODES.INVALID_FORMAT:
return 'Invalid format';
// ... other cases
}
}