alfred-chrono-notes
Version:
Alfred Workflow for easy access to your Obsidian Periodic Notes
13 lines (12 loc) • 359 B
JavaScript
/**
* @description This exception is thrown when a path is directory.
* @param {string} message - The error message.
*/
export class PathNotFileException extends Error {
constructor(message) {
super(message);
this.name = 'PathNotFileException';
this.message = message;
console.error(`${this.name}: ${message}`);
}
}