@singlephon/rift
Version:
A lightweight micro-framework connecting Blade, Livewire, Alpine.js, and JS seamlessly in Laravel projects.
13 lines (11 loc) • 369 B
JavaScript
export class RiftError extends Error {
constructor(message, options = {}) {
super('[Rift]: ' + message);
this.name = this.constructor.name;
this.code = options.code || null;
this.context = options.context || null;
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
}
}