import HttpStatus from '@xpring-eng/http-status' ; import PayIDError from './payIdError' ; /**
 * An enum containing the different kinds of ParseErrors.
 */ export enum ParseErrorType { InvalidMediaType = 'InvalidMediaType' , MissingPayId = 'MissingPayId' , InvalidPayId = 'InvalidPayId' , MultipleIdentityKeys = 'MultipleIdentityKeys' , InvalidIdentityKey = 'InvalidIdentityKey' , MissingPayIdVersionHeader = 'MissingPayIdVersionHeader' , InvalidPayIdVersionHeader = 'InvalidPayIdVersionHeader' , UnsupportedPayIdVersionHeader = 'UnsupportedPayIdVersionHeader' , MissingPayIdApiVersionHeader = 'MissingPayIdApiVersionHeader' , InvalidPayIdApiVersionHeader = 'InvalidPayIdApiVersionHeader' , UnsupportedPayIdApiVersionHeader = 'UnsupportedPayIdApiVersionHeader' , IncompatibleRequestMethod = 'IncompatibleRequestMethod' } /**
 * A custom error type to organize logic around 400 - Bad Request errors.
 */ export default class ParseError extends PayIDError { public readonly kind : ParseErrorType ; param message param kind public constructor ( message , kind ) { super ( message , HttpStatus . BadRequest ) ; this . kind = kind ; } }