import { log } from '../helpers' ; export const createDescriptiveErrorClass = ( error_name ) => { return class DescriptiveError extends Error { constructor ( message ) { super ( log . strip ( `${ error_name }\n${ message }` ) ) ; log ( `❤️${ error_name }❤️\n\n${ message }` ) ; } } ; } ;