All files / src/utils error.ts

100% Statements 12/12
100% Branches 0/0
100% Functions 3/3
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2533x   47x       33x 6x 6x       33x   41x 41x   41x 41x 41x   41x      
export class BeeError extends Error {
  public constructor(message: string) {
    super(message)
  }
}
 
export class BeeArgumentError extends BeeError {
  public constructor(message: string, readonly value: unknown) {
    super(message)
  }
}
 
export class BeeResponseError extends BeeError {
  public constructor(
    public method: string,
    public url: string,
    message: string,
    public responseBody?: unknown,
    public status?: number,
    public statusText?: string,
  ) {
    super(message)
  }
}