errors.ts 496 B

123456789101112131415161718192021
  1. import ExtensibleCustomError from 'extensible-custom-error';
  2. export class PathAlreadyExistsError extends ExtensibleCustomError {
  3. targetPath: string;
  4. constructor(message: string, targetPath: string) {
  5. super(message);
  6. this.targetPath = targetPath;
  7. }
  8. }
  9. /*
  10. * User Authentication
  11. */
  12. export class NullUsernameToBeRegisteredError extends ExtensibleCustomError {}
  13. // Invalid Parent bookmark folder error
  14. export class InvalidParentBookmarkFolderError extends ExtensibleCustomError {}