-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactored exceptions (#263)
* Refactored exceptions * Synced exceptions in keymaster-app * Added new test for verifyDb
- Loading branch information
Showing
12 changed files
with
418 additions
and
399 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
export const INVALID_DID = new Error('Invalid DID'); | ||
export const UNKNOWN_DID = new Error('Unknown DID'); | ||
export const UNKNOWN_ID = new Error('Unknown ID'); | ||
export const INVALID_UPDATE = new Error('Invalid update'); | ||
export const INVALID_OPERATION = new Error('Invalid operation'); | ||
export const INVALID_VERSION = new Error('Invalid version'); | ||
export const INVALID_TYPE = new Error('Invalid type'); | ||
export const INVALID_REGISTRY = new Error('Invalid registry'); | ||
export const INVALID_PARAMETER = new Error('Invalid parameter'); | ||
export const UPDATE_FAILED = new Error('Update failed'); | ||
export const EXPECTED_EXCEPTION = new Error('Expected to throw an exception'); | ||
export const INVALID_DID = 'Invalid DID'; | ||
export const INVALID_OPERATION = 'Invalid operation'; | ||
export const INVALID_VERSION = 'Invalid version'; | ||
export const INVALID_TYPE = 'Invalid type'; | ||
export const INVALID_REGISTRY = 'Invalid registry'; | ||
|
||
export const UNKNOWN_ID = 'Unknown ID'; | ||
export const NO_CURRENT_ID = 'No current ID'; | ||
export const INVALID_PARAMETER = 'Invalid parameter'; | ||
export const UPDATE_FAILED = 'Update failed'; | ||
export const EXPECTED_EXCEPTION = 'Expected to throw an exception'; |
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.