department-of-veterans-affairs/vets-website

View on GitHub
src/applications/_mock-form-ae-design-patterns/vadx/utils/StorageError.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @class StorageError
 * @extends Error
 * Custom error class for storage-related errors
 */
export class StorageError extends Error {
  constructor(message, type) {
    super(message);
    this.name = 'StorageError';
    this.type = type;
  }
}