graycoreio/daffodil

View on GitHub
libs/auth/driver/src/errors/invalid-api-response.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {
  DaffError,
  DaffInheritableError,
} from '@daffodil/core';

import { DaffAuthDriverErrorCodes } from './codes.enum';

export class DaffAuthInvalidAPIResponseError extends DaffInheritableError implements DaffError {
  public readonly code: string = DaffAuthDriverErrorCodes.INVALID_API_RESPONSE;

  constructor(public message: string) {
    super(message);
  }
}