matcher/src/modules/geography/exceptions/geography.exception.ts

14 lines
276 B
TypeScript
Raw Normal View History

2023-05-11 15:47:55 +00:00
export class GeographyException implements Error {
name: string;
message: string;
constructor(private _code: number, private _message: string) {
this.name = 'GeographyException';
this.message = _message;
}
get code(): number {
return this._code;
}
}