UNPKG

dicom-microscopy-viewer

Version:
16 lines (13 loc) 303 B
const errorTypes = { VISUALIZATION: 'Visualization', ENCODINGANDDECODING: 'EncodingDecoding' } class CustomError extends Error { constructor (type, message) { super() this.message = message this.stack = new Error().stack this.type = type } } export { errorTypes, CustomError }