graycoreio/daffodil

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

Summary

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

export const DAFF_CUSTOMER_PAYMENT_INVALID_API_RESPONSE_ERROR_CODE = 'DAFF_CUSTOMER_PAYMENT_INVALID_API_RESPONSE';

/**
 * A general error indicating that the platform returned a response which cannot be processed.
 */
export class DaffCustomerPaymentInvalidAPIResponseError extends DaffInheritableError implements DaffError {
  public readonly code: string = DAFF_CUSTOMER_PAYMENT_INVALID_API_RESPONSE_ERROR_CODE;

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