import { BackendError , BackendErrorLabel , StatusCode } from '../http' ; export class ConnectionError extends BackendError { constructor ( message , label , code ) { super ( message , label , code ) ; Object . setPrototypeOf ( this , new . target . prototype ) ; this . name = 'ConnectionError' ; } } export class ConnectionLegalholdMissingConsentError extends ConnectionError { constructor ( message , label = BackendErrorLabel . LEGAL_HOLD_MISSING_CONSENT , code = StatusCode . PRECONDITION_FAILED ) { super ( message , label , code ) ; Object . setPrototypeOf ( this , new . target . prototype ) ; this . name = 'ConnectionLegalholdConsentNeededError' ; } }