export const defError = (prefix, suffix = (msg) => (msg !== undefined ? ": " + msg : "")) => class extends Error { constructor(msg) { super(prefix(msg) + suffix(msg)); } };