vcard-creator
Version:
A JavaScript vCard 3.0 creator library for both node.js and the web
13 lines (12 loc) • 402 B
JavaScript
class VCardException extends Error {
constructor(params) {
// Pass remaining arguments to the parent constructor
super(params);
// Maintains a proper stack trace where our error was thrown
if (Error.captureStackTrace) {
Error.captureStackTrace(this, VCardException);
}
this.name = 'VCardException';
}
}
export default VCardException;