mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 05:43:09 +02:00
987168b863
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
13 lines
238 B
TypeScript
13 lines
238 B
TypeScript
/**
|
|
* ID付きエラー
|
|
*/
|
|
export class IdentifiableError extends Error {
|
|
public message: string;
|
|
public id: string;
|
|
|
|
constructor(id: string, message?: string) {
|
|
super(message);
|
|
this.message = message || '';
|
|
this.id = id;
|
|
}
|
|
}
|