mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
188 lines
7.4 KiB
188 lines
7.4 KiB
2 years ago
|
import CustomError from 'custom-error-instance'
|
||
7 years ago
|
|
||
2 years ago
|
export default {
|
||
2 years ago
|
Custom (slug, message) {
|
||
|
return CustomError(slug, { message })
|
||
|
},
|
||
6 years ago
|
AssetDeleteForbidden: CustomError('AssetDeleteForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to delete this asset.'
|
||
6 years ago
|
}),
|
||
6 years ago
|
AssetFolderExists: CustomError('AssetFolderExists', {
|
||
2 years ago
|
message: 'An asset folder with the same name already exists.'
|
||
6 years ago
|
}),
|
||
|
AssetGenericError: CustomError('AssetGenericError', {
|
||
2 years ago
|
message: 'An unexpected error occured during asset operation.'
|
||
6 years ago
|
}),
|
||
6 years ago
|
AssetInvalid: CustomError('AssetInvalid', {
|
||
2 years ago
|
message: 'This asset does not exist or is invalid.'
|
||
6 years ago
|
}),
|
||
|
AssetRenameCollision: CustomError('AssetRenameCollision', {
|
||
2 years ago
|
message: 'An asset with the same filename in the same folder already exists.'
|
||
6 years ago
|
}),
|
||
|
AssetRenameForbidden: CustomError('AssetRenameForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to rename this asset.'
|
||
6 years ago
|
}),
|
||
|
AssetRenameInvalid: CustomError('AssetRenameInvalid', {
|
||
2 years ago
|
message: 'The new asset filename is invalid.'
|
||
6 years ago
|
}),
|
||
|
AssetRenameInvalidExt: CustomError('AssetRenameInvalidExt', {
|
||
2 years ago
|
message: 'The file extension cannot be changed on an existing asset.'
|
||
6 years ago
|
}),
|
||
|
AssetRenameTargetForbidden: CustomError('AssetRenameTargetForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to rename this asset to the requested name.'
|
||
6 years ago
|
}),
|
||
6 years ago
|
AuthAccountBanned: CustomError('AuthAccountBanned', {
|
||
2 years ago
|
message: 'Your account has been disabled.'
|
||
6 years ago
|
}),
|
||
|
AuthAccountAlreadyExists: CustomError('AuthAccountAlreadyExists', {
|
||
2 years ago
|
message: 'An account already exists using this email address.'
|
||
6 years ago
|
}),
|
||
|
AuthAccountNotVerified: CustomError('AuthAccountNotVerified', {
|
||
2 years ago
|
message: 'You must verify your account before your can login.'
|
||
6 years ago
|
}),
|
||
6 years ago
|
AuthGenericError: CustomError('AuthGenericError', {
|
||
2 years ago
|
message: 'An unexpected error occured during login.'
|
||
6 years ago
|
}),
|
||
|
AuthLoginFailed: CustomError('AuthLoginFailed', {
|
||
2 years ago
|
message: 'Invalid email / username or password.'
|
||
6 years ago
|
}),
|
||
5 years ago
|
AuthPasswordInvalid: CustomError('AuthPasswordInvalid', {
|
||
2 years ago
|
message: 'Password is incorrect.'
|
||
5 years ago
|
}),
|
||
6 years ago
|
AuthProviderInvalid: CustomError('AuthProviderInvalid', {
|
||
2 years ago
|
message: 'Invalid authentication provider.'
|
||
6 years ago
|
}),
|
||
6 years ago
|
AuthRegistrationDisabled: CustomError('AuthRegistrationDisabled', {
|
||
2 years ago
|
message: 'Registration is disabled. Contact your system administrator.'
|
||
6 years ago
|
}),
|
||
|
AuthRegistrationDomainUnauthorized: CustomError('AuthRegistrationDomainUnauthorized', {
|
||
2 years ago
|
message: 'You are not authorized to register. Your domain is not whitelisted.'
|
||
6 years ago
|
}),
|
||
5 years ago
|
AuthRequired: CustomError('AuthRequired', {
|
||
2 years ago
|
message: 'You must be authenticated to access this resource.'
|
||
5 years ago
|
}),
|
||
6 years ago
|
AuthTFAFailed: CustomError('AuthTFAFailed', {
|
||
2 years ago
|
message: 'Incorrect TFA Security Code.'
|
||
6 years ago
|
}),
|
||
|
AuthTFAInvalid: CustomError('AuthTFAInvalid', {
|
||
2 years ago
|
message: 'Invalid TFA Security Code or Login Token.'
|
||
6 years ago
|
}),
|
||
6 years ago
|
AuthValidationTokenInvalid: CustomError('AuthValidationTokenInvalid', {
|
||
2 years ago
|
message: 'Invalid validation token.'
|
||
6 years ago
|
}),
|
||
6 years ago
|
BruteInstanceIsInvalid: CustomError('BruteInstanceIsInvalid', {
|
||
2 years ago
|
message: 'Invalid Brute Force Instance.'
|
||
6 years ago
|
}),
|
||
|
BruteTooManyAttempts: CustomError('BruteTooManyAttempts', {
|
||
2 years ago
|
message: 'Too many attempts! Try again later.'
|
||
6 years ago
|
}),
|
||
5 years ago
|
CommentContentMissing: CustomError('CommentContentMissing', {
|
||
2 years ago
|
message: 'Comment content is missing or too short.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
CommentGenericError: CustomError('CommentGenericError', {
|
||
2 years ago
|
message: 'An unexpected error occured.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
CommentManageForbidden: CustomError('CommentManageForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to manage comments on this page.'
|
||
5 years ago
|
}),
|
||
|
CommentNotFound: CustomError('CommentNotFound', {
|
||
2 years ago
|
message: 'This comment does not exist.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
CommentPostForbidden: CustomError('CommentPostForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to post a comment on this page.'
|
||
5 years ago
|
}),
|
||
|
CommentViewForbidden: CustomError('CommentViewForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to view comments for this page.'
|
||
5 years ago
|
}),
|
||
6 years ago
|
InputInvalid: CustomError('InputInvalid', {
|
||
2 years ago
|
message: 'Input data is invalid.'
|
||
6 years ago
|
}),
|
||
6 years ago
|
LocaleGenericError: CustomError('LocaleGenericError', {
|
||
2 years ago
|
message: 'An unexpected error occured during locale operation.'
|
||
6 years ago
|
}),
|
||
6 years ago
|
LocaleInvalidNamespace: CustomError('LocaleInvalidNamespace', {
|
||
2 years ago
|
message: 'Invalid locale or namespace.'
|
||
6 years ago
|
}),
|
||
|
MailGenericError: CustomError('MailGenericError', {
|
||
2 years ago
|
message: 'An unexpected error occured during mail operation.'
|
||
6 years ago
|
}),
|
||
|
MailInvalidRecipient: CustomError('MailInvalidRecipient', {
|
||
2 years ago
|
message: 'The recipient email address is invalid.'
|
||
6 years ago
|
}),
|
||
|
MailNotConfigured: CustomError('MailNotConfigured', {
|
||
2 years ago
|
message: 'The mail configuration is incomplete or invalid.'
|
||
6 years ago
|
}),
|
||
|
MailTemplateFailed: CustomError('MailTemplateFailed', {
|
||
2 years ago
|
message: 'Mail template failed to load.'
|
||
6 years ago
|
}),
|
||
5 years ago
|
PageCreateForbidden: CustomError('PageCreateForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to create this page.'
|
||
5 years ago
|
}),
|
||
|
PageDeleteForbidden: CustomError('PageDeleteForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to delete this page.'
|
||
5 years ago
|
}),
|
||
6 years ago
|
PageGenericError: CustomError('PageGenericError', {
|
||
2 years ago
|
message: 'An unexpected error occured during a page operation.'
|
||
6 years ago
|
}),
|
||
|
PageDuplicateCreate: CustomError('PageDuplicateCreate', {
|
||
2 years ago
|
message: 'Cannot create this page because an entry already exists at the same path.'
|
||
6 years ago
|
}),
|
||
5 years ago
|
PageEmptyContent: CustomError('PageEmptyContent', {
|
||
2 years ago
|
message: 'Page content cannot be empty.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
PageHistoryForbidden: CustomError('PageHistoryForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to view the history of this page.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
PageIllegalPath: CustomError('PageIllegalPath', {
|
||
2 years ago
|
message: 'Page path cannot contains illegal characters.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
PageMoveForbidden: CustomError('PageMoveForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to move this page.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
PageNotFound: CustomError('PageNotFound', {
|
||
2 years ago
|
message: 'This page does not exist.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
PagePathCollision: CustomError('PagePathCollision', {
|
||
2 years ago
|
message: 'Destination page path already exists.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
PageRestoreForbidden: CustomError('PageRestoreForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to restore this page version.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
PageUpdateForbidden: CustomError('PageUpdateForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to update this page.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
PageViewForbidden: CustomError('PageViewForbidden', {
|
||
2 years ago
|
message: 'You are not authorized to view this page.'
|
||
5 years ago
|
}),
|
||
6 years ago
|
SearchActivationFailed: CustomError('SearchActivationFailed', {
|
||
2 years ago
|
message: 'Search Engine activation failed.'
|
||
6 years ago
|
}),
|
||
|
SearchGenericError: CustomError('SearchGenericError', {
|
||
2 years ago
|
message: 'An unexpected error occured during search operation.'
|
||
6 years ago
|
}),
|
||
5 years ago
|
SystemGenericError: CustomError('SystemGenericError', {
|
||
2 years ago
|
message: 'An unexpected error occured.'
|
||
5 years ago
|
}),
|
||
|
SystemSSLDisabled: CustomError('SystemSSLDisabled', {
|
||
2 years ago
|
message: 'SSL is not enabled.'
|
||
5 years ago
|
}),
|
||
|
SystemSSLLEUnavailable: CustomError('SystemSSLLEUnavailable', {
|
||
2 years ago
|
message: 'Let\'s Encrypt is not initialized.'
|
||
5 years ago
|
}),
|
||
|
SystemSSLRenewInvalidProvider: CustomError('SystemSSLRenewInvalidProvider', {
|
||
2 years ago
|
message: 'Current provider does not support SSL certificate renewal.'
|
||
5 years ago
|
}),
|
||
6 years ago
|
UserCreationFailed: CustomError('UserCreationFailed', {
|
||
2 years ago
|
message: 'An unexpected error occured during user creation.'
|
||
5 years ago
|
}),
|
||
4 years ago
|
UserDeleteForeignConstraint: CustomError('UserDeleteForeignConstraint', {
|
||
2 years ago
|
message: 'Cannot delete user because of content relational constraints.'
|
||
5 years ago
|
}),
|
||
|
UserDeleteProtected: CustomError('UserDeleteProtected', {
|
||
2 years ago
|
message: 'Cannot delete a protected system account.'
|
||
5 years ago
|
}),
|
||
5 years ago
|
UserNotFound: CustomError('UserNotFound', {
|
||
2 years ago
|
message: 'This user does not exist.'
|
||
6 years ago
|
})
|
||
7 years ago
|
}
|