import { BackendError , BackendErrorLabel , StatusCode , SyntheticErrorLabel } from '../../http' ; export class FeatureError extends BackendError { constructor ( message , label , code ) { super ( message , label , code ) ; Object . setPrototypeOf ( this , FeatureError . prototype ) ; this . name = 'FeatureError' ; } } export class InvalidAppLockTimeoutError extends FeatureError { constructor ( message , label = BackendErrorLabel . APP_LOCK_INVALID_TIMEOUT , code = StatusCode . BAD_REQUEST ) { super ( message , label , code ) ; Object . setPrototypeOf ( this , InvalidAppLockTimeoutError . prototype ) ; this . name = 'InvalidAppLockTimeoutError' ; } } export class FeatureLockedError extends FeatureError { constructor ( message , label = BackendErrorLabel . FEATURE_LOCKED , code = StatusCode . CONFLICT ) { super ( message , label , code ) ; Object . setPrototypeOf ( this , FeatureLockedError . prototype ) ; this . name = 'FeatureLockedError' ; } }