libs/cart/driver/src/errors/invalid-country.ts
import {
DaffError,
DaffInheritableError,
} from '@daffodil/core';
import { DaffCartDriverErrorCodes } from './codes.enum';
/**
* An error thrown when the specified country is invalid for the specified address
* or missing where it is required.
*/
export class DaffInvalidCountryError extends DaffInheritableError implements DaffError {
public readonly code: string = DaffCartDriverErrorCodes.INVALID_COUNTRY;
constructor(message?: string) {
super(message);
}
}