MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / constructor

Method constructor

src/lib/util.js:11–17  ·  view source on GitHub ↗
(msg, code = 'INTERNAL_ERROR', data)

Source from the content-addressed store, hash-verified

9
10export class MvError extends Error {
11 constructor(msg, code = 'INTERNAL_ERROR', data) {
12 super(msg);
13 this.code = code;
14 if (data !== undefined) {
15 this.data = data;
16 }
17 }
18}
19
20export function sortAndDeDup(unordered, compFn) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected