File size: 201 Bytes
c7052c4
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
export class GatewayError extends Error {
  constructor(
    message: string,
    public status: number = 500,
    public cause?: Error,
  ) {
    super(message);
    this.name = 'GatewayError';
  }
}