import { BackendError , BackendErrorLabel , StatusCode , SyntheticErrorLabel } from '../http' ; export class AccountError extends BackendError { constructor ( message , label , code ) { super ( message , label , code ) ; Object . setPrototypeOf ( this , AccountError . prototype ) ; this . name = 'AccountError' ; } } export class CustomBackendNotFoundError extends AccountError { constructor ( message , label = BackendErrorLabel . CUSTOM_BACKEND_NOT_FOUND , code = StatusCode . NOT_FOUND ) { super ( message , label , code ) ; Object . setPrototypeOf ( this , CustomBackendNotFoundError . prototype ) ; this . name = 'CustomBackendNotFoundError' ; } }