resource-watch/adapter-gfw

View on GitHub
src/errors/datasetNotFound.error.ts

Summary

Maintainability
A
1 hr
Test Coverage
export class DatasetNotFound extends Error {
    status: number;

    constructor(message: string) {
        super(message);
        this.name = 'DatasetNotFound';
        this.message = message;
        this.status = 404;
    }
}