1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.DocumentNotJsonError = exports.ValueInvalidError = exports.ValueTooDeepError = exports.PathTooDeepError = exports.PathTooBigError = exports.PathInvalidError = exports.PathMismatchError = exports.PathNotFoundError = exports.MutationLostError = exports.DurableWriteReCommitInProgressError = exports.DurableWriteInProgressError = exports.DurabilityAmbiguousError = exports.DurabilityImpossibleError = exports.DurabilityLevelNotAvailableError = exports.ValueNotJsonError = exports.DocumentExistsError = exports.ValueTooLargeError = exports.DocumentNotLockedError = exports.DocumentLockedError = exports.DocumentUnretrievableError = exports.DocumentNotFoundError = exports.IndexExistsError = exports.QuotaLimitedError = exports.RateLimitedError = exports.IndexNotFoundError = exports.ScopeNotFoundError = exports.FeatureNotAvailableError = exports.UnambiguousTimeoutError = exports.AmbiguousTimeoutError = exports.UnsupportedOperationError = exports.DecodingFailureError = exports.EncodingFailureError = exports.CollectionNotFoundError = exports.BucketNotFoundError = exports.CasMismatchError = exports.ParsingFailureError = exports.TemporaryFailureError = exports.AuthenticationFailureError = exports.InternalServerFailureError = exports.ServiceNotAvailableError = exports.InvalidArgumentError = exports.RequestCanceledError = exports.TimeoutError = exports.InvalidDurabilityReplicateToLevel = exports.InvalidDurabilityPersistToLevel = exports.InvalidDurabilityLevel = exports.NeedOpenBucketError = exports.ClusterClosedError = exports.ConnectionClosedError = exports.CouchbaseError = void 0;
|
4 | exports.TransactionCommitAmbiguousError = exports.TransactionExpiredError = exports.TransactionFailedError = exports.TransactionOperationFailedError = exports.EventingFunctionPausedError = exports.EventingFunctionDeployedError = exports.EventingFunctionNotBootstrappedError = exports.EventingFunctionIdenticalKeyspaceError = exports.EventingFunctionCompilationFailureError = exports.EventingFunctionNotDeployedError = exports.EventingFunctionNotFoundError = exports.BucketNotFlushableError = exports.UserExistsError = exports.BucketExistsError = exports.GroupNotFoundError = exports.UserNotFoundError = exports.ScopeExistsError = exports.CollectionExistsError = exports.DesignDocumentNotFoundError = exports.ViewNotFoundError = exports.LinkExistsError = exports.LinkNotFoundError = exports.DataverseExistsError = exports.DatasetExistsError = exports.DataverseNotFoundError = exports.DatasetNotFoundError = exports.JobQueueFullError = exports.CompilationFailureError = exports.IndexNotReadyError = exports.DmlFailureError = exports.PreparedStatementFailureError = exports.IndexFailureError = exports.PlanningFailureError = exports.PathExistsError = exports.DeltaInvalidError = exports.NumberTooBigError = void 0;
|
5 | require("./errorcontexts");
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | class CouchbaseError extends Error {
|
13 | constructor(message, cause, context) {
|
14 | super(message);
|
15 | this.name = this.constructor.name;
|
16 | this.stack = undefined;
|
17 | this.cause = cause;
|
18 | this.context = context;
|
19 | }
|
20 | }
|
21 | exports.CouchbaseError = CouchbaseError;
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | class ConnectionClosedError extends CouchbaseError {
|
28 | constructor() {
|
29 | super('The connection has been closed.');
|
30 | }
|
31 | }
|
32 | exports.ConnectionClosedError = ConnectionClosedError;
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | class ClusterClosedError extends CouchbaseError {
|
40 | constructor() {
|
41 | super('The parent cluster object has been closed.');
|
42 | }
|
43 | }
|
44 | exports.ClusterClosedError = ClusterClosedError;
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | class NeedOpenBucketError extends CouchbaseError {
|
53 | constructor() {
|
54 | super('You must have one open bucket before you can perform queries.');
|
55 | }
|
56 | }
|
57 | exports.NeedOpenBucketError = NeedOpenBucketError;
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | class InvalidDurabilityLevel extends CouchbaseError {
|
64 | constructor() {
|
65 | super('An invalid durability level was specified.');
|
66 | }
|
67 | }
|
68 | exports.InvalidDurabilityLevel = InvalidDurabilityLevel;
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | class InvalidDurabilityPersistToLevel extends CouchbaseError {
|
75 | constructor() {
|
76 | super('An invalid durability PersistTo level was specified.');
|
77 | }
|
78 | }
|
79 | exports.InvalidDurabilityPersistToLevel = InvalidDurabilityPersistToLevel;
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 | class InvalidDurabilityReplicateToLevel extends CouchbaseError {
|
86 | constructor() {
|
87 | super('An invalid durability ReplicateTo level was specified.');
|
88 | }
|
89 | }
|
90 | exports.InvalidDurabilityReplicateToLevel = InvalidDurabilityReplicateToLevel;
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 | class TimeoutError extends CouchbaseError {
|
97 | constructor(cause, context) {
|
98 | super('timeout', cause, context);
|
99 | }
|
100 | }
|
101 | exports.TimeoutError = TimeoutError;
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 | class RequestCanceledError extends CouchbaseError {
|
108 | constructor(cause, context) {
|
109 | super('request canceled', cause, context);
|
110 | }
|
111 | }
|
112 | exports.RequestCanceledError = RequestCanceledError;
|
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 | class InvalidArgumentError extends CouchbaseError {
|
119 | constructor(cause, context) {
|
120 | super('invalid argument', cause, context);
|
121 | }
|
122 | }
|
123 | exports.InvalidArgumentError = InvalidArgumentError;
|
124 |
|
125 |
|
126 |
|
127 |
|
128 |
|
129 |
|
130 |
|
131 | class ServiceNotAvailableError extends CouchbaseError {
|
132 | constructor(cause, context) {
|
133 | super('service not available', cause, context);
|
134 | }
|
135 | }
|
136 | exports.ServiceNotAvailableError = ServiceNotAvailableError;
|
137 |
|
138 |
|
139 |
|
140 |
|
141 |
|
142 |
|
143 | class InternalServerFailureError extends CouchbaseError {
|
144 | constructor(cause, context) {
|
145 | super('internal server failure', cause, context);
|
146 | }
|
147 | }
|
148 | exports.InternalServerFailureError = InternalServerFailureError;
|
149 |
|
150 |
|
151 |
|
152 |
|
153 |
|
154 | class AuthenticationFailureError extends CouchbaseError {
|
155 | constructor(cause, context) {
|
156 | super('authentication failure', cause, context);
|
157 | }
|
158 | }
|
159 | exports.AuthenticationFailureError = AuthenticationFailureError;
|
160 |
|
161 |
|
162 |
|
163 |
|
164 |
|
165 |
|
166 | class TemporaryFailureError extends CouchbaseError {
|
167 | constructor(cause, context) {
|
168 | super('temporary failure', cause, context);
|
169 | }
|
170 | }
|
171 | exports.TemporaryFailureError = TemporaryFailureError;
|
172 |
|
173 |
|
174 |
|
175 |
|
176 |
|
177 | class ParsingFailureError extends CouchbaseError {
|
178 | constructor(cause, context) {
|
179 | super('parsing failure', cause, context);
|
180 | }
|
181 | }
|
182 | exports.ParsingFailureError = ParsingFailureError;
|
183 |
|
184 |
|
185 |
|
186 |
|
187 |
|
188 |
|
189 |
|
190 | class CasMismatchError extends CouchbaseError {
|
191 | constructor(cause, context) {
|
192 | super('cas mismatch', cause, context);
|
193 | }
|
194 | }
|
195 | exports.CasMismatchError = CasMismatchError;
|
196 |
|
197 |
|
198 |
|
199 |
|
200 |
|
201 | class BucketNotFoundError extends CouchbaseError {
|
202 | constructor(cause, context) {
|
203 | super('bucket not found', cause, context);
|
204 | }
|
205 | }
|
206 | exports.BucketNotFoundError = BucketNotFoundError;
|
207 |
|
208 |
|
209 |
|
210 |
|
211 |
|
212 | class CollectionNotFoundError extends CouchbaseError {
|
213 | constructor(cause, context) {
|
214 | super('collection not found', cause, context);
|
215 | }
|
216 | }
|
217 | exports.CollectionNotFoundError = CollectionNotFoundError;
|
218 |
|
219 |
|
220 |
|
221 |
|
222 |
|
223 | class EncodingFailureError extends CouchbaseError {
|
224 | constructor(cause, context) {
|
225 | super('encoding failure', cause, context);
|
226 | }
|
227 | }
|
228 | exports.EncodingFailureError = EncodingFailureError;
|
229 |
|
230 |
|
231 |
|
232 |
|
233 |
|
234 | class DecodingFailureError extends CouchbaseError {
|
235 | constructor(cause, context) {
|
236 | super('decoding failure', cause, context);
|
237 | }
|
238 | }
|
239 | exports.DecodingFailureError = DecodingFailureError;
|
240 |
|
241 |
|
242 |
|
243 |
|
244 |
|
245 | class UnsupportedOperationError extends CouchbaseError {
|
246 | constructor(cause, context) {
|
247 | super('unsupported operation', cause, context);
|
248 | }
|
249 | }
|
250 | exports.UnsupportedOperationError = UnsupportedOperationError;
|
251 |
|
252 |
|
253 |
|
254 |
|
255 |
|
256 |
|
257 |
|
258 | class AmbiguousTimeoutError extends TimeoutError {
|
259 | constructor(cause, context) {
|
260 | super(cause, context);
|
261 | this.message = 'ambiguous timeout';
|
262 | }
|
263 | }
|
264 | exports.AmbiguousTimeoutError = AmbiguousTimeoutError;
|
265 |
|
266 |
|
267 |
|
268 |
|
269 |
|
270 |
|
271 | class UnambiguousTimeoutError extends TimeoutError {
|
272 | constructor(cause, context) {
|
273 | super(cause, context);
|
274 | this.message = 'unambiguous timeout';
|
275 | }
|
276 | }
|
277 | exports.UnambiguousTimeoutError = UnambiguousTimeoutError;
|
278 |
|
279 |
|
280 |
|
281 |
|
282 |
|
283 |
|
284 |
|
285 |
|
286 | class FeatureNotAvailableError extends CouchbaseError {
|
287 | constructor(cause, context) {
|
288 | super('feature not available', cause, context);
|
289 | }
|
290 | }
|
291 | exports.FeatureNotAvailableError = FeatureNotAvailableError;
|
292 |
|
293 |
|
294 |
|
295 |
|
296 |
|
297 | class ScopeNotFoundError extends CouchbaseError {
|
298 | constructor(cause, context) {
|
299 | super('scope not found', cause, context);
|
300 | }
|
301 | }
|
302 | exports.ScopeNotFoundError = ScopeNotFoundError;
|
303 |
|
304 |
|
305 |
|
306 |
|
307 |
|
308 | class IndexNotFoundError extends CouchbaseError {
|
309 | constructor(cause, context) {
|
310 | super('index not found', cause, context);
|
311 | }
|
312 | }
|
313 | exports.IndexNotFoundError = IndexNotFoundError;
|
314 |
|
315 |
|
316 |
|
317 |
|
318 |
|
319 |
|
320 | class RateLimitedError extends CouchbaseError {
|
321 | constructor(cause, context) {
|
322 | super('operation was rate limited', cause, context);
|
323 | }
|
324 | }
|
325 | exports.RateLimitedError = RateLimitedError;
|
326 |
|
327 |
|
328 |
|
329 |
|
330 |
|
331 |
|
332 | class QuotaLimitedError extends CouchbaseError {
|
333 | constructor(cause, context) {
|
334 | super('operation was quota limited', cause, context);
|
335 | }
|
336 | }
|
337 | exports.QuotaLimitedError = QuotaLimitedError;
|
338 |
|
339 |
|
340 |
|
341 |
|
342 |
|
343 |
|
344 | class IndexExistsError extends CouchbaseError {
|
345 | constructor(cause, context) {
|
346 | super('index exists', cause, context);
|
347 | }
|
348 | }
|
349 | exports.IndexExistsError = IndexExistsError;
|
350 |
|
351 |
|
352 |
|
353 |
|
354 |
|
355 | class DocumentNotFoundError extends CouchbaseError {
|
356 | constructor(cause, context) {
|
357 | super('document not found', cause, context);
|
358 | }
|
359 | }
|
360 | exports.DocumentNotFoundError = DocumentNotFoundError;
|
361 |
|
362 |
|
363 |
|
364 |
|
365 |
|
366 | class DocumentUnretrievableError extends CouchbaseError {
|
367 | constructor(cause, context) {
|
368 | super('document unretrievable', cause, context);
|
369 | }
|
370 | }
|
371 | exports.DocumentUnretrievableError = DocumentUnretrievableError;
|
372 |
|
373 |
|
374 |
|
375 |
|
376 |
|
377 |
|
378 | class DocumentLockedError extends CouchbaseError {
|
379 | constructor(cause, context) {
|
380 | super('document locked', cause, context);
|
381 | }
|
382 | }
|
383 | exports.DocumentLockedError = DocumentLockedError;
|
384 |
|
385 |
|
386 |
|
387 |
|
388 |
|
389 |
|
390 | class DocumentNotLockedError extends CouchbaseError {
|
391 | constructor(cause, context) {
|
392 | super('document not locked', cause, context);
|
393 | }
|
394 | }
|
395 | exports.DocumentNotLockedError = DocumentNotLockedError;
|
396 |
|
397 |
|
398 |
|
399 |
|
400 |
|
401 | class ValueTooLargeError extends CouchbaseError {
|
402 | constructor(cause, context) {
|
403 | super('value too large', cause, context);
|
404 | }
|
405 | }
|
406 | exports.ValueTooLargeError = ValueTooLargeError;
|
407 |
|
408 |
|
409 |
|
410 |
|
411 |
|
412 |
|
413 | class DocumentExistsError extends CouchbaseError {
|
414 | constructor(cause, context) {
|
415 | super('document exists', cause, context);
|
416 | }
|
417 | }
|
418 | exports.DocumentExistsError = DocumentExistsError;
|
419 |
|
420 |
|
421 |
|
422 |
|
423 |
|
424 | class ValueNotJsonError extends CouchbaseError {
|
425 | constructor(cause, context) {
|
426 | super('value not json', cause, context);
|
427 | }
|
428 | }
|
429 | exports.ValueNotJsonError = ValueNotJsonError;
|
430 |
|
431 |
|
432 |
|
433 |
|
434 |
|
435 | class DurabilityLevelNotAvailableError extends CouchbaseError {
|
436 | constructor(cause, context) {
|
437 | super('durability level not available', cause, context);
|
438 | }
|
439 | }
|
440 | exports.DurabilityLevelNotAvailableError = DurabilityLevelNotAvailableError;
|
441 |
|
442 |
|
443 |
|
444 |
|
445 |
|
446 |
|
447 |
|
448 | class DurabilityImpossibleError extends CouchbaseError {
|
449 | constructor(cause, context) {
|
450 | super('durability impossible', cause, context);
|
451 | }
|
452 | }
|
453 | exports.DurabilityImpossibleError = DurabilityImpossibleError;
|
454 |
|
455 |
|
456 |
|
457 |
|
458 |
|
459 |
|
460 |
|
461 | class DurabilityAmbiguousError extends CouchbaseError {
|
462 | constructor(cause, context) {
|
463 | super('durability ambiguous', cause, context);
|
464 | }
|
465 | }
|
466 | exports.DurabilityAmbiguousError = DurabilityAmbiguousError;
|
467 |
|
468 |
|
469 |
|
470 |
|
471 |
|
472 |
|
473 | class DurableWriteInProgressError extends CouchbaseError {
|
474 | constructor(cause, context) {
|
475 | super('durable write in progress', cause, context);
|
476 | }
|
477 | }
|
478 | exports.DurableWriteInProgressError = DurableWriteInProgressError;
|
479 |
|
480 |
|
481 |
|
482 |
|
483 |
|
484 |
|
485 | class DurableWriteReCommitInProgressError extends CouchbaseError {
|
486 | constructor(cause, context) {
|
487 | super('durable write recommit in progress', cause, context);
|
488 | }
|
489 | }
|
490 | exports.DurableWriteReCommitInProgressError = DurableWriteReCommitInProgressError;
|
491 |
|
492 |
|
493 |
|
494 |
|
495 |
|
496 | class MutationLostError extends CouchbaseError {
|
497 | constructor(cause, context) {
|
498 | super('mutation lost', cause, context);
|
499 | }
|
500 | }
|
501 | exports.MutationLostError = MutationLostError;
|
502 |
|
503 |
|
504 |
|
505 |
|
506 |
|
507 | class PathNotFoundError extends CouchbaseError {
|
508 | constructor(cause, context) {
|
509 | super('path not found', cause, context);
|
510 | }
|
511 | }
|
512 | exports.PathNotFoundError = PathNotFoundError;
|
513 |
|
514 |
|
515 |
|
516 |
|
517 |
|
518 |
|
519 |
|
520 | class PathMismatchError extends CouchbaseError {
|
521 | constructor(cause, context) {
|
522 | super('path mismatch', cause, context);
|
523 | }
|
524 | }
|
525 | exports.PathMismatchError = PathMismatchError;
|
526 |
|
527 |
|
528 |
|
529 |
|
530 |
|
531 | class PathInvalidError extends CouchbaseError {
|
532 | constructor(cause, context) {
|
533 | super('path invalid', cause, context);
|
534 | }
|
535 | }
|
536 | exports.PathInvalidError = PathInvalidError;
|
537 |
|
538 |
|
539 |
|
540 |
|
541 |
|
542 | class PathTooBigError extends CouchbaseError {
|
543 | constructor(cause, context) {
|
544 | super('path too big', cause, context);
|
545 | }
|
546 | }
|
547 | exports.PathTooBigError = PathTooBigError;
|
548 |
|
549 |
|
550 |
|
551 |
|
552 |
|
553 | class PathTooDeepError extends CouchbaseError {
|
554 | constructor(cause, context) {
|
555 | super('path too deep', cause, context);
|
556 | }
|
557 | }
|
558 | exports.PathTooDeepError = PathTooDeepError;
|
559 |
|
560 |
|
561 |
|
562 |
|
563 |
|
564 |
|
565 | class ValueTooDeepError extends CouchbaseError {
|
566 | constructor(cause, context) {
|
567 | super('value too deep', cause, context);
|
568 | }
|
569 | }
|
570 | exports.ValueTooDeepError = ValueTooDeepError;
|
571 |
|
572 |
|
573 |
|
574 |
|
575 |
|
576 | class ValueInvalidError extends CouchbaseError {
|
577 | constructor(cause, context) {
|
578 | super('value invalid', cause, context);
|
579 | }
|
580 | }
|
581 | exports.ValueInvalidError = ValueInvalidError;
|
582 |
|
583 |
|
584 |
|
585 |
|
586 |
|
587 |
|
588 | class DocumentNotJsonError extends CouchbaseError {
|
589 | constructor(cause, context) {
|
590 | super('document not json', cause, context);
|
591 | }
|
592 | }
|
593 | exports.DocumentNotJsonError = DocumentNotJsonError;
|
594 |
|
595 |
|
596 |
|
597 |
|
598 |
|
599 | class NumberTooBigError extends CouchbaseError {
|
600 | constructor(cause, context) {
|
601 | super('number too big', cause, context);
|
602 | }
|
603 | }
|
604 | exports.NumberTooBigError = NumberTooBigError;
|
605 |
|
606 |
|
607 |
|
608 |
|
609 |
|
610 | class DeltaInvalidError extends CouchbaseError {
|
611 | constructor(cause, context) {
|
612 | super('delta invalid', cause, context);
|
613 | }
|
614 | }
|
615 | exports.DeltaInvalidError = DeltaInvalidError;
|
616 |
|
617 |
|
618 |
|
619 |
|
620 |
|
621 |
|
622 | class PathExistsError extends CouchbaseError {
|
623 | constructor(cause, context) {
|
624 | super('path exists', cause, context);
|
625 | }
|
626 | }
|
627 | exports.PathExistsError = PathExistsError;
|
628 |
|
629 |
|
630 |
|
631 |
|
632 |
|
633 | class PlanningFailureError extends CouchbaseError {
|
634 | constructor(cause, context) {
|
635 | super('planning failure', cause, context);
|
636 | }
|
637 | }
|
638 | exports.PlanningFailureError = PlanningFailureError;
|
639 |
|
640 |
|
641 |
|
642 |
|
643 |
|
644 | class IndexFailureError extends CouchbaseError {
|
645 | constructor(cause, context) {
|
646 | super('index failure', cause, context);
|
647 | }
|
648 | }
|
649 | exports.IndexFailureError = IndexFailureError;
|
650 |
|
651 |
|
652 |
|
653 |
|
654 |
|
655 | class PreparedStatementFailureError extends CouchbaseError {
|
656 | constructor(cause, context) {
|
657 | super('prepared statement failure', cause, context);
|
658 | }
|
659 | }
|
660 | exports.PreparedStatementFailureError = PreparedStatementFailureError;
|
661 |
|
662 |
|
663 |
|
664 |
|
665 |
|
666 | class DmlFailureError extends CouchbaseError {
|
667 | constructor(cause, context) {
|
668 | super('generic dml failure', cause, context);
|
669 | }
|
670 | }
|
671 | exports.DmlFailureError = DmlFailureError;
|
672 |
|
673 |
|
674 |
|
675 |
|
676 |
|
677 | class IndexNotReadyError extends CouchbaseError {
|
678 | constructor(cause, context) {
|
679 | super('index not ready', cause, context);
|
680 | }
|
681 | }
|
682 | exports.IndexNotReadyError = IndexNotReadyError;
|
683 |
|
684 |
|
685 |
|
686 |
|
687 |
|
688 | class CompilationFailureError extends CouchbaseError {
|
689 | constructor(cause, context) {
|
690 | super('compilation failure', cause, context);
|
691 | }
|
692 | }
|
693 | exports.CompilationFailureError = CompilationFailureError;
|
694 |
|
695 |
|
696 |
|
697 |
|
698 |
|
699 |
|
700 | class JobQueueFullError extends CouchbaseError {
|
701 | constructor(cause, context) {
|
702 | super('job queue full', cause, context);
|
703 | }
|
704 | }
|
705 | exports.JobQueueFullError = JobQueueFullError;
|
706 |
|
707 |
|
708 |
|
709 |
|
710 |
|
711 | class DatasetNotFoundError extends CouchbaseError {
|
712 | constructor(cause, context) {
|
713 | super('dataset not found', cause, context);
|
714 | }
|
715 | }
|
716 | exports.DatasetNotFoundError = DatasetNotFoundError;
|
717 |
|
718 |
|
719 |
|
720 |
|
721 |
|
722 | class DataverseNotFoundError extends CouchbaseError {
|
723 | constructor(cause, context) {
|
724 | super('dataverse not found', cause, context);
|
725 | }
|
726 | }
|
727 | exports.DataverseNotFoundError = DataverseNotFoundError;
|
728 |
|
729 |
|
730 |
|
731 |
|
732 |
|
733 |
|
734 | class DatasetExistsError extends CouchbaseError {
|
735 | constructor(cause, context) {
|
736 | super('dataset exists', cause, context);
|
737 | }
|
738 | }
|
739 | exports.DatasetExistsError = DatasetExistsError;
|
740 |
|
741 |
|
742 |
|
743 |
|
744 |
|
745 |
|
746 | class DataverseExistsError extends CouchbaseError {
|
747 | constructor(cause, context) {
|
748 | super('dataverse exists', cause, context);
|
749 | }
|
750 | }
|
751 | exports.DataverseExistsError = DataverseExistsError;
|
752 |
|
753 |
|
754 |
|
755 |
|
756 |
|
757 | class LinkNotFoundError extends CouchbaseError {
|
758 | constructor(cause, context) {
|
759 | super('link not found', cause, context);
|
760 | }
|
761 | }
|
762 | exports.LinkNotFoundError = LinkNotFoundError;
|
763 |
|
764 |
|
765 |
|
766 |
|
767 |
|
768 | class LinkExistsError extends CouchbaseError {
|
769 | constructor(cause, context) {
|
770 | super('link already exists', cause, context);
|
771 | }
|
772 | }
|
773 | exports.LinkExistsError = LinkExistsError;
|
774 |
|
775 |
|
776 |
|
777 |
|
778 |
|
779 | class ViewNotFoundError extends CouchbaseError {
|
780 | constructor(cause, context) {
|
781 | super('view not found', cause, context);
|
782 | }
|
783 | }
|
784 | exports.ViewNotFoundError = ViewNotFoundError;
|
785 |
|
786 |
|
787 |
|
788 |
|
789 |
|
790 | class DesignDocumentNotFoundError extends CouchbaseError {
|
791 | constructor(cause, context) {
|
792 | super('design document not found', cause, context);
|
793 | }
|
794 | }
|
795 | exports.DesignDocumentNotFoundError = DesignDocumentNotFoundError;
|
796 |
|
797 |
|
798 |
|
799 |
|
800 |
|
801 |
|
802 | class CollectionExistsError extends CouchbaseError {
|
803 | constructor(cause, context) {
|
804 | super('collection exists', cause, context);
|
805 | }
|
806 | }
|
807 | exports.CollectionExistsError = CollectionExistsError;
|
808 |
|
809 |
|
810 |
|
811 |
|
812 |
|
813 |
|
814 | class ScopeExistsError extends CouchbaseError {
|
815 | constructor(cause, context) {
|
816 | super('scope exists', cause, context);
|
817 | }
|
818 | }
|
819 | exports.ScopeExistsError = ScopeExistsError;
|
820 |
|
821 |
|
822 |
|
823 |
|
824 |
|
825 | class UserNotFoundError extends CouchbaseError {
|
826 | constructor(cause, context) {
|
827 | super('user not found', cause, context);
|
828 | }
|
829 | }
|
830 | exports.UserNotFoundError = UserNotFoundError;
|
831 |
|
832 |
|
833 |
|
834 |
|
835 |
|
836 | class GroupNotFoundError extends CouchbaseError {
|
837 | constructor(cause, context) {
|
838 | super('group not found', cause, context);
|
839 | }
|
840 | }
|
841 | exports.GroupNotFoundError = GroupNotFoundError;
|
842 |
|
843 |
|
844 |
|
845 |
|
846 |
|
847 |
|
848 | class BucketExistsError extends CouchbaseError {
|
849 | constructor(cause, context) {
|
850 | super('bucket exists', cause, context);
|
851 | }
|
852 | }
|
853 | exports.BucketExistsError = BucketExistsError;
|
854 |
|
855 |
|
856 |
|
857 |
|
858 |
|
859 |
|
860 | class UserExistsError extends CouchbaseError {
|
861 | constructor(cause, context) {
|
862 | super('user exists', cause, context);
|
863 | }
|
864 | }
|
865 | exports.UserExistsError = UserExistsError;
|
866 |
|
867 |
|
868 |
|
869 |
|
870 |
|
871 |
|
872 | class BucketNotFlushableError extends CouchbaseError {
|
873 | constructor(cause, context) {
|
874 | super('bucket not flushable', cause, context);
|
875 | }
|
876 | }
|
877 | exports.BucketNotFlushableError = BucketNotFlushableError;
|
878 |
|
879 |
|
880 |
|
881 |
|
882 |
|
883 | class EventingFunctionNotFoundError extends CouchbaseError {
|
884 | constructor(cause, context) {
|
885 | super('eventing function not found', cause, context);
|
886 | }
|
887 | }
|
888 | exports.EventingFunctionNotFoundError = EventingFunctionNotFoundError;
|
889 |
|
890 |
|
891 |
|
892 |
|
893 |
|
894 |
|
895 | class EventingFunctionNotDeployedError extends CouchbaseError {
|
896 | constructor(cause, context) {
|
897 | super('eventing function not deployed', cause, context);
|
898 | }
|
899 | }
|
900 | exports.EventingFunctionNotDeployedError = EventingFunctionNotDeployedError;
|
901 |
|
902 |
|
903 |
|
904 |
|
905 |
|
906 | class EventingFunctionCompilationFailureError extends CouchbaseError {
|
907 | constructor(cause, context) {
|
908 | super('eventing function compilation failed', cause, context);
|
909 | }
|
910 | }
|
911 | exports.EventingFunctionCompilationFailureError = EventingFunctionCompilationFailureError;
|
912 |
|
913 |
|
914 |
|
915 |
|
916 |
|
917 |
|
918 | class EventingFunctionIdenticalKeyspaceError extends CouchbaseError {
|
919 | constructor(cause, context) {
|
920 | super('eventing function identical keyspace', cause, context);
|
921 | }
|
922 | }
|
923 | exports.EventingFunctionIdenticalKeyspaceError = EventingFunctionIdenticalKeyspaceError;
|
924 |
|
925 |
|
926 |
|
927 |
|
928 |
|
929 |
|
930 | class EventingFunctionNotBootstrappedError extends CouchbaseError {
|
931 | constructor(cause, context) {
|
932 | super('eventing function not bootstrapped', cause, context);
|
933 | }
|
934 | }
|
935 | exports.EventingFunctionNotBootstrappedError = EventingFunctionNotBootstrappedError;
|
936 |
|
937 |
|
938 |
|
939 |
|
940 |
|
941 |
|
942 | class EventingFunctionDeployedError extends CouchbaseError {
|
943 | constructor(cause, context) {
|
944 | super('eventing function deployed', cause, context);
|
945 | }
|
946 | }
|
947 | exports.EventingFunctionDeployedError = EventingFunctionDeployedError;
|
948 |
|
949 |
|
950 |
|
951 |
|
952 |
|
953 |
|
954 | class EventingFunctionPausedError extends CouchbaseError {
|
955 | constructor(cause, context) {
|
956 | super('eventing function paused', cause, context);
|
957 | }
|
958 | }
|
959 | exports.EventingFunctionPausedError = EventingFunctionPausedError;
|
960 |
|
961 |
|
962 |
|
963 |
|
964 |
|
965 | class TransactionOperationFailedError extends CouchbaseError {
|
966 | constructor(cause, context) {
|
967 | super('transaction operation failed', cause, context);
|
968 | }
|
969 | }
|
970 | exports.TransactionOperationFailedError = TransactionOperationFailedError;
|
971 |
|
972 |
|
973 |
|
974 |
|
975 |
|
976 | class TransactionFailedError extends CouchbaseError {
|
977 | constructor(cause, context) {
|
978 | super('transaction failed', cause, context);
|
979 | }
|
980 | }
|
981 | exports.TransactionFailedError = TransactionFailedError;
|
982 |
|
983 |
|
984 |
|
985 |
|
986 |
|
987 | class TransactionExpiredError extends CouchbaseError {
|
988 | constructor(cause) {
|
989 | super('transaction expired', cause);
|
990 | }
|
991 | }
|
992 | exports.TransactionExpiredError = TransactionExpiredError;
|
993 |
|
994 |
|
995 |
|
996 |
|
997 |
|
998 |
|
999 | class TransactionCommitAmbiguousError extends CouchbaseError {
|
1000 | constructor(cause) {
|
1001 | super('transaction commit ambiguous', cause);
|
1002 | }
|
1003 | }
|
1004 | exports.TransactionCommitAmbiguousError = TransactionCommitAmbiguousError;
|