import { BackendError , BackendErrorLabel , StatusCode } from '../http' ; export class ClientError extends BackendError { constructor ( message , label , code ) { super ( message , label , code ) ; Object . setPrototypeOf ( this , new . target . prototype ) ; this . name = 'ClientError' ; } } export class ClientCapabilityRemovedError extends ClientError { constructor ( message , label = BackendErrorLabel . CLIENT_CAPABILITY_REMOVED , code = StatusCode . CONFLICT ) { super ( message , label , code ) ; Object . setPrototypeOf ( this , new . target . prototype ) ; this . name = 'ClientCapabilityRemovedError' ; } }