resource-watch/adapter-gfw

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

Summary

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

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