import { ERROR_TYPE } from '../constants';
import { BaseRemoteError } from './RemoteError';
export class RemoteUnreachableError extends BaseRemoteError {
    constructor(detail) {
        super(ERROR_TYPE.REMOTE_UNREACHABLE, 'Remote unreachable', detail);
        if (detail?.includes('timeout')) {
            this.status = 504;
        }
    }
}
