import './errorcontexts' ; import { ErrorContext , KeyValueErrorContext , ViewErrorContext , QueryErrorContext , SearchErrorContext , AnalyticsErrorContext , HttpErrorContext , } from './errorcontexts' ; category export class CouchbaseError extends Error { /**
     * Specifies the underlying cause of this error, if one is available.
     */ cause : Error | undefined ; /**
     * Specifies additional contextual information which is available for this
     * error.  Depending on the service that generated it.
     */ context : KeyValueErrorContext | ViewErrorContext | QueryErrorContext | SearchErrorContext | AnalyticsErrorContext | HttpErrorContext | undefined ; constructor ( message , cause ? , context ? ) { super ( message ) ; this . name = this . constructor . name ; this . cause = cause ; this . context = context as any ; } } category export class ConnectionClosedError extends CouchbaseError { constructor ( ) { super ( 'The connection has been closed.' ) ; } } category export class ClusterClosedError extends CouchbaseError { constructor ( ) { super ( 'The parent cluster object has been closed.' ) ; } } category export class NeedOpenBucketError extends CouchbaseError { constructor ( ) { super ( 'You must have one open bucket before you can perform queries.' ) ; } } category export class InvalidDurabilityLevel extends CouchbaseError { constructor ( ) { super ( 'An invalid durability level was specified.' ) ; } } category export class TimeoutError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'timeout' , cause , context ) ; } } category export class RequestCanceledError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'request canceled' , cause , context ) ; } } category export class InvalidArgumentError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'invalid argument' , cause , context ) ; } } category export class ServiceNotAvailableError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'service not available' , cause , context ) ; } } category export class InternalServerFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'internal server failure' , cause , context ) ; } } category export class AuthenticationFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'authentication failure' , cause , context ) ; } } category export class TemporaryFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'temporary failure' , cause , context ) ; } } category export class ParsingFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'parsing failure' , cause , context ) ; } } category export class CasMismatchError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'cas mismatch' , cause , context ) ; } } category export class BucketNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'bucket not found' , cause , context ) ; } } category export class CollectionNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'collection not found' , cause , context ) ; } } category export class EncodingFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'encoding failure' , cause , context ) ; } } category export class DecodingFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'decoding failure' , cause , context ) ; } } category export class UnsupportedOperationError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'unsupported operation' , cause , context ) ; } } category export class AmbiguousTimeoutError extends TimeoutError { constructor ( cause ? , context ? ) { super ( cause , context ) ; this . message = 'ambiguous timeout' ; } } category export class UnambiguousTimeoutError extends TimeoutError { constructor ( cause ? , context ? ) { super ( cause , context ) ; this . message = 'unambiguous timeout' ; } } category export class FeatureNotAvailableError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'feature not available' , cause , context ) ; } } category export class ScopeNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'scope not found' , cause , context ) ; } } category export class IndexNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'index not found' , cause , context ) ; } } category export class RateLimitedError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'operation was rate limited' , cause , context ) ; } } category export class QuotaLimitedError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'operation was quota limited' , cause , context ) ; } } category export class IndexExistsError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'index exists' , cause , context ) ; } } category export class DocumentNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'document not found' , cause , context ) ; } } category export class DocumentUnretrievableError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'document unretrievable' , cause , context ) ; } } category export class DocumentLockedError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'document locked' , cause , context ) ; } } category export class ValueTooLargeError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'value too large' , cause , context ) ; } } category export class DocumentExistsError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'document exists' , cause , context ) ; } } category export class ValueNotJsonError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'value not json' , cause , context ) ; } } category export class DurabilityLevelNotAvailableError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'durability level not available' , cause , context ) ; } } category export class DurabilityImpossibleError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'durability impossible' , cause , context ) ; } } category export class DurabilityAmbiguousError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'durability ambiguous' , cause , context ) ; } } category export class DurableWriteInProgressError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'durable write in progress' , cause , context ) ; } } category export class DurableWriteReCommitInProgressError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'durable write recommit in progress' , cause , context ) ; } } category export class MutationLostError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'mutation lost' , cause , context ) ; } } category export class PathNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'path not found' , cause , context ) ; } } category export class PathMismatchError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'path mismatch' , cause , context ) ; } } category export class PathInvalidError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'path invalid' , cause , context ) ; } } category export class PathTooBigError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'path too big' , cause , context ) ; } } category export class PathTooDeepError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'path too deep' , cause , context ) ; } } category export class ValueTooDeepError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'value too deep' , cause , context ) ; } } category export class ValueInvalidError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'value invalid' , cause , context ) ; } } category export class DocumentNotJsonError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'document not json' , cause , context ) ; } } category export class NumberTooBigError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'number too big' , cause , context ) ; } } category export class DeltaInvalidError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'delta invalid' , cause , context ) ; } } category export class PathExistsError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'path exists' , cause , context ) ; } } category export class PlanningFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'planning failure' , cause , context ) ; } } category export class IndexFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'index failure' , cause , context ) ; } } category export class PreparedStatementFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'prepared statement failure' , cause , context ) ; } } category export class CompilationFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'compilation failure' , cause , context ) ; } } category export class JobQueueFullError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'job queue full' , cause , context ) ; } } category export class DatasetNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'dataset not found' , cause , context ) ; } } category export class DataverseNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'dataverse not found' , cause , context ) ; } } category export class DatasetExistsError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'dataset exists' , cause , context ) ; } } category export class DataverseExistsError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'dataverse exists' , cause , context ) ; } } category export class LinkNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'link not found' , cause , context ) ; } } category export class LinkExistsError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'link already exists' , cause , context ) ; } } category export class ViewNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'view not found' , cause , context ) ; } } category export class DesignDocumentNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'design document not found' , cause , context ) ; } } category export class CollectionExistsError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'collection exists' , cause , context ) ; } } category export class ScopeExistsError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'scope exists' , cause , context ) ; } } category export class UserNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'user not found' , cause , context ) ; } } category export class GroupNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'group not found' , cause , context ) ; } } category export class BucketExistsError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'bucket exists' , cause , context ) ; } } category export class UserExistsError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'user exists' , cause , context ) ; } } category export class BucketNotFlushableError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'bucket not flushable' , cause , context ) ; } } category export class EventingFunctionNotFoundError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'eventing function not found' , cause , context ) ; } } category export class EventingFunctionNotDeployedError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'eventing function not deployed' , cause , context ) ; } } category export class EventingFunctionCompilationFailureError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'eventing function compilation failed' , cause , context ) ; } } category export class EventingFunctionIdenticalKeyspaceError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'eventing function identical keyspace' , cause , context ) ; } } category export class EventingFunctionNotBootstrappedError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'eventing function not bootstrapped' , cause , context ) ; } } category export class EventingFunctionDeployedError extends CouchbaseError { constructor ( cause ? , context ? ) { super ( 'eventing function deployed' , cause , context ) ; } }