forked from renovatebot/renovate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use error constants (renovatebot#5088) (renovatebot#5100)
Use defined error constants throughout codebase.
- Loading branch information
1 parent
f0b8236
commit ee153e5
Showing
63 changed files
with
542 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// System error | ||
export const SYSTEM_INSUFFICIENT_DISK_SPACE = 'disk-space'; | ||
|
||
// Platform Error | ||
export const PLATFORM_AUTHENTICATION_ERROR = 'authentication-error'; | ||
export const PLATFORM_BAD_CREDENTIALS = 'bad-credentials'; | ||
export const PLATFORM_FAILURE = 'platform-failure'; | ||
export const PLATFORM_INTEGRATION_UNAUTHORIZED = 'integration-unauthorized'; | ||
export const PLATFORM_NOT_FOUND = 'platform-not-found'; | ||
export const PLATFORM_RATE_LIMIT_EXCEEDED = 'rate-limit-exceeded'; | ||
|
||
// Config Error | ||
export const CONFIG_VALIDATION = 'config-validation'; | ||
|
||
// Repository Error | ||
export const REPOSITORY_ACCESS_FORBIDDEN = 'forbidden'; | ||
export const REPOSITORY_ARCHIVED = 'archived'; | ||
export const REPOSITORY_BLOCKED = 'blocked'; | ||
export const REPOSITORY_CANNOT_FORK = 'cannot-fork'; | ||
export const REPOSITORY_CHANGED = 'repository-changed'; | ||
export const REPOSITORY_DISABLED = 'disabled'; | ||
export const REPOSITORY_EMPTY = 'empty'; | ||
export const REPOSITORY_FORKED = 'fork'; | ||
export const REPOSITORY_MIRRORED = 'mirror'; | ||
export const REPOSITORY_NOT_FOUND = 'not-found'; | ||
export const REPOSITORY_NO_VULNERABILITY = 'no-vulnerability-alerts'; | ||
export const REPOSITORY_RENAMED = 'renamed'; | ||
export const REPOSITORY_TEMPORARY_ERROR = 'temporary-error'; | ||
export const REPOSITORY_UNINITIATED = 'uninitiated'; | ||
|
||
// Manager Error | ||
export const MANAGER_LOCKFILE_ERROR = 'lockfile-error'; | ||
export const MANAGER_NO_PACKAGE_FILES = 'no-package-files'; | ||
|
||
// Datasource error | ||
export const DATASOURCE_FAILURE = 'registry-failure'; | ||
|
||
// Worker Error | ||
export const WORKER_FILE_UPDATE_FAILED = 'update-failure'; | ||
|
||
// Bundler Error | ||
export const BUNDLER_COULD_NOT_RESOLVE = 'bundler-resolve'; | ||
export const BUNDLER_INVALID_CREDENTIALS = 'bundler-credentials'; | ||
export const BUNDLER_UNKNOWN_ERROR = 'bundler-unknown'; | ||
|
||
// Unknown Error | ||
export const UNKNOWN_ERROR = 'unknown-error'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.