UNPKG

@fmal/cerebral-storage

Version:

Storage provider for Cerebral

16 lines (14 loc) 308 B
export default class StorageProviderError extends Error { constructor(error: Error) { super(error.message); this.name = 'StorageProviderError'; this.message = error.message; } toJSON() { return { name: this.name, message: this.message, stack: this.stack }; } }