@othree.io/excuses
Version:
Excuses
18 lines • 706 B
TypeScript
/**
* Custom Error class representing a failure to delete an entity.
*/
export declare class CannotDeleteError extends Error {
/** Static error code to identify the error type. */
static ERROR: string;
/** Optional identifier of the entity that couldn't be deleted. */
id?: string;
/**
* Creates a new CannotDeleteError.
*
* @param {string} [id] - Optional identifier of the entity that couldn't be deleted.
* @param {string} [type] - Optional type or category of the entity.
* @param {string} [message] - Optional custom error message.
*/
constructor(id?: string, type?: string, message?: string);
}
//# sourceMappingURL=cannot-delete-error.d.ts.map