import { EXTERNAL_HOST_ERROR } from '../../constants/error-messages' ; export class ExternalHostError extends Error { hostType : string | undefined ; err : Error ; lookupName ? : string ; reason ? : string ; constructor ( err , hostType ? ) { super ( EXTERNAL_HOST_ERROR ) ; Object . setPrototypeOf ( this , ExternalHostError . prototype ) ; this . hostType = hostType ; this . err = err ; } }