Exception.ts 341 Bytes
Newer Older
Hanadi's avatar
Hanadi committed
1
2
3
4
5
6
7
8
9
10
11
12
13
import {ExceptionCode} from "./ExceptionCode";

export class Exception extends Error {
    code!: ExceptionCode;
    description?: string;
    name = "OGC_Exception";

    constructor(code: ExceptionCode, description: string | undefined) {
        super(description);
        this.code = code;
        this.description = description;
    }
}