aws-sdk-neptunedata 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,970 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Neptunedata
11
+
12
+ # When Neptunedata returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::Neptunedata::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all Neptunedata errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::Neptunedata::Errors::ServiceError
20
+ # # rescues all Neptunedata API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {BadRequestException}
32
+ # * {BulkLoadIdNotFoundException}
33
+ # * {CancelledByUserException}
34
+ # * {ClientTimeoutException}
35
+ # * {ConcurrentModificationException}
36
+ # * {ConstraintViolationException}
37
+ # * {ExpiredStreamException}
38
+ # * {FailureByQueryException}
39
+ # * {IllegalArgumentException}
40
+ # * {InternalFailureException}
41
+ # * {InvalidArgumentException}
42
+ # * {InvalidNumericDataException}
43
+ # * {InvalidParameterException}
44
+ # * {LoadUrlAccessDeniedException}
45
+ # * {MLResourceNotFoundException}
46
+ # * {MalformedQueryException}
47
+ # * {MemoryLimitExceededException}
48
+ # * {MethodNotAllowedException}
49
+ # * {MissingParameterException}
50
+ # * {ParsingException}
51
+ # * {PreconditionsFailedException}
52
+ # * {QueryLimitExceededException}
53
+ # * {QueryLimitException}
54
+ # * {QueryTooLargeException}
55
+ # * {ReadOnlyViolationException}
56
+ # * {S3Exception}
57
+ # * {ServerShutdownException}
58
+ # * {StatisticsNotAvailableException}
59
+ # * {StreamRecordsNotFoundException}
60
+ # * {ThrottlingException}
61
+ # * {TimeLimitExceededException}
62
+ # * {TooManyRequestsException}
63
+ # * {UnsupportedOperationException}
64
+ #
65
+ # Additionally, error classes are dynamically generated for service errors based on the error code
66
+ # if they are not defined above.
67
+ module Errors
68
+
69
+ extend Aws::Errors::DynamicErrors
70
+
71
+ class AccessDeniedException < ServiceError
72
+
73
+ # @param [Seahorse::Client::RequestContext] context
74
+ # @param [String] message
75
+ # @param [Aws::Neptunedata::Types::AccessDeniedException] data
76
+ def initialize(context, message, data = Aws::EmptyStructure.new)
77
+ super(context, message, data)
78
+ end
79
+
80
+ # @return [String]
81
+ def detailed_message
82
+ @data[:detailed_message]
83
+ end
84
+
85
+ # @return [String]
86
+ def request_id
87
+ @data[:request_id]
88
+ end
89
+
90
+ # @return [String]
91
+ def code
92
+ @code || @data[:code]
93
+ end
94
+ end
95
+
96
+ class BadRequestException < ServiceError
97
+
98
+ # @param [Seahorse::Client::RequestContext] context
99
+ # @param [String] message
100
+ # @param [Aws::Neptunedata::Types::BadRequestException] data
101
+ def initialize(context, message, data = Aws::EmptyStructure.new)
102
+ super(context, message, data)
103
+ end
104
+
105
+ # @return [String]
106
+ def detailed_message
107
+ @data[:detailed_message]
108
+ end
109
+
110
+ # @return [String]
111
+ def request_id
112
+ @data[:request_id]
113
+ end
114
+
115
+ # @return [String]
116
+ def code
117
+ @code || @data[:code]
118
+ end
119
+ end
120
+
121
+ class BulkLoadIdNotFoundException < ServiceError
122
+
123
+ # @param [Seahorse::Client::RequestContext] context
124
+ # @param [String] message
125
+ # @param [Aws::Neptunedata::Types::BulkLoadIdNotFoundException] data
126
+ def initialize(context, message, data = Aws::EmptyStructure.new)
127
+ super(context, message, data)
128
+ end
129
+
130
+ # @return [String]
131
+ def detailed_message
132
+ @data[:detailed_message]
133
+ end
134
+
135
+ # @return [String]
136
+ def request_id
137
+ @data[:request_id]
138
+ end
139
+
140
+ # @return [String]
141
+ def code
142
+ @code || @data[:code]
143
+ end
144
+
145
+ def retryable?
146
+ true
147
+ end
148
+ end
149
+
150
+ class CancelledByUserException < ServiceError
151
+
152
+ # @param [Seahorse::Client::RequestContext] context
153
+ # @param [String] message
154
+ # @param [Aws::Neptunedata::Types::CancelledByUserException] data
155
+ def initialize(context, message, data = Aws::EmptyStructure.new)
156
+ super(context, message, data)
157
+ end
158
+
159
+ # @return [String]
160
+ def detailed_message
161
+ @data[:detailed_message]
162
+ end
163
+
164
+ # @return [String]
165
+ def request_id
166
+ @data[:request_id]
167
+ end
168
+
169
+ # @return [String]
170
+ def code
171
+ @code || @data[:code]
172
+ end
173
+
174
+ def retryable?
175
+ true
176
+ end
177
+ end
178
+
179
+ class ClientTimeoutException < ServiceError
180
+
181
+ # @param [Seahorse::Client::RequestContext] context
182
+ # @param [String] message
183
+ # @param [Aws::Neptunedata::Types::ClientTimeoutException] data
184
+ def initialize(context, message, data = Aws::EmptyStructure.new)
185
+ super(context, message, data)
186
+ end
187
+
188
+ # @return [String]
189
+ def detailed_message
190
+ @data[:detailed_message]
191
+ end
192
+
193
+ # @return [String]
194
+ def request_id
195
+ @data[:request_id]
196
+ end
197
+
198
+ # @return [String]
199
+ def code
200
+ @code || @data[:code]
201
+ end
202
+
203
+ def retryable?
204
+ true
205
+ end
206
+ end
207
+
208
+ class ConcurrentModificationException < ServiceError
209
+
210
+ # @param [Seahorse::Client::RequestContext] context
211
+ # @param [String] message
212
+ # @param [Aws::Neptunedata::Types::ConcurrentModificationException] data
213
+ def initialize(context, message, data = Aws::EmptyStructure.new)
214
+ super(context, message, data)
215
+ end
216
+
217
+ # @return [String]
218
+ def detailed_message
219
+ @data[:detailed_message]
220
+ end
221
+
222
+ # @return [String]
223
+ def request_id
224
+ @data[:request_id]
225
+ end
226
+
227
+ # @return [String]
228
+ def code
229
+ @code || @data[:code]
230
+ end
231
+
232
+ def retryable?
233
+ true
234
+ end
235
+ end
236
+
237
+ class ConstraintViolationException < ServiceError
238
+
239
+ # @param [Seahorse::Client::RequestContext] context
240
+ # @param [String] message
241
+ # @param [Aws::Neptunedata::Types::ConstraintViolationException] data
242
+ def initialize(context, message, data = Aws::EmptyStructure.new)
243
+ super(context, message, data)
244
+ end
245
+
246
+ # @return [String]
247
+ def detailed_message
248
+ @data[:detailed_message]
249
+ end
250
+
251
+ # @return [String]
252
+ def request_id
253
+ @data[:request_id]
254
+ end
255
+
256
+ # @return [String]
257
+ def code
258
+ @code || @data[:code]
259
+ end
260
+
261
+ def retryable?
262
+ true
263
+ end
264
+ end
265
+
266
+ class ExpiredStreamException < ServiceError
267
+
268
+ # @param [Seahorse::Client::RequestContext] context
269
+ # @param [String] message
270
+ # @param [Aws::Neptunedata::Types::ExpiredStreamException] data
271
+ def initialize(context, message, data = Aws::EmptyStructure.new)
272
+ super(context, message, data)
273
+ end
274
+
275
+ # @return [String]
276
+ def detailed_message
277
+ @data[:detailed_message]
278
+ end
279
+
280
+ # @return [String]
281
+ def request_id
282
+ @data[:request_id]
283
+ end
284
+
285
+ # @return [String]
286
+ def code
287
+ @code || @data[:code]
288
+ end
289
+ end
290
+
291
+ class FailureByQueryException < ServiceError
292
+
293
+ # @param [Seahorse::Client::RequestContext] context
294
+ # @param [String] message
295
+ # @param [Aws::Neptunedata::Types::FailureByQueryException] data
296
+ def initialize(context, message, data = Aws::EmptyStructure.new)
297
+ super(context, message, data)
298
+ end
299
+
300
+ # @return [String]
301
+ def detailed_message
302
+ @data[:detailed_message]
303
+ end
304
+
305
+ # @return [String]
306
+ def request_id
307
+ @data[:request_id]
308
+ end
309
+
310
+ # @return [String]
311
+ def code
312
+ @code || @data[:code]
313
+ end
314
+
315
+ def retryable?
316
+ true
317
+ end
318
+ end
319
+
320
+ class IllegalArgumentException < ServiceError
321
+
322
+ # @param [Seahorse::Client::RequestContext] context
323
+ # @param [String] message
324
+ # @param [Aws::Neptunedata::Types::IllegalArgumentException] data
325
+ def initialize(context, message, data = Aws::EmptyStructure.new)
326
+ super(context, message, data)
327
+ end
328
+
329
+ # @return [String]
330
+ def detailed_message
331
+ @data[:detailed_message]
332
+ end
333
+
334
+ # @return [String]
335
+ def request_id
336
+ @data[:request_id]
337
+ end
338
+
339
+ # @return [String]
340
+ def code
341
+ @code || @data[:code]
342
+ end
343
+ end
344
+
345
+ class InternalFailureException < ServiceError
346
+
347
+ # @param [Seahorse::Client::RequestContext] context
348
+ # @param [String] message
349
+ # @param [Aws::Neptunedata::Types::InternalFailureException] data
350
+ def initialize(context, message, data = Aws::EmptyStructure.new)
351
+ super(context, message, data)
352
+ end
353
+
354
+ # @return [String]
355
+ def detailed_message
356
+ @data[:detailed_message]
357
+ end
358
+
359
+ # @return [String]
360
+ def request_id
361
+ @data[:request_id]
362
+ end
363
+
364
+ # @return [String]
365
+ def code
366
+ @code || @data[:code]
367
+ end
368
+ end
369
+
370
+ class InvalidArgumentException < ServiceError
371
+
372
+ # @param [Seahorse::Client::RequestContext] context
373
+ # @param [String] message
374
+ # @param [Aws::Neptunedata::Types::InvalidArgumentException] data
375
+ def initialize(context, message, data = Aws::EmptyStructure.new)
376
+ super(context, message, data)
377
+ end
378
+
379
+ # @return [String]
380
+ def detailed_message
381
+ @data[:detailed_message]
382
+ end
383
+
384
+ # @return [String]
385
+ def request_id
386
+ @data[:request_id]
387
+ end
388
+
389
+ # @return [String]
390
+ def code
391
+ @code || @data[:code]
392
+ end
393
+ end
394
+
395
+ class InvalidNumericDataException < ServiceError
396
+
397
+ # @param [Seahorse::Client::RequestContext] context
398
+ # @param [String] message
399
+ # @param [Aws::Neptunedata::Types::InvalidNumericDataException] data
400
+ def initialize(context, message, data = Aws::EmptyStructure.new)
401
+ super(context, message, data)
402
+ end
403
+
404
+ # @return [String]
405
+ def detailed_message
406
+ @data[:detailed_message]
407
+ end
408
+
409
+ # @return [String]
410
+ def request_id
411
+ @data[:request_id]
412
+ end
413
+
414
+ # @return [String]
415
+ def code
416
+ @code || @data[:code]
417
+ end
418
+ end
419
+
420
+ class InvalidParameterException < ServiceError
421
+
422
+ # @param [Seahorse::Client::RequestContext] context
423
+ # @param [String] message
424
+ # @param [Aws::Neptunedata::Types::InvalidParameterException] data
425
+ def initialize(context, message, data = Aws::EmptyStructure.new)
426
+ super(context, message, data)
427
+ end
428
+
429
+ # @return [String]
430
+ def detailed_message
431
+ @data[:detailed_message]
432
+ end
433
+
434
+ # @return [String]
435
+ def request_id
436
+ @data[:request_id]
437
+ end
438
+
439
+ # @return [String]
440
+ def code
441
+ @code || @data[:code]
442
+ end
443
+ end
444
+
445
+ class LoadUrlAccessDeniedException < ServiceError
446
+
447
+ # @param [Seahorse::Client::RequestContext] context
448
+ # @param [String] message
449
+ # @param [Aws::Neptunedata::Types::LoadUrlAccessDeniedException] data
450
+ def initialize(context, message, data = Aws::EmptyStructure.new)
451
+ super(context, message, data)
452
+ end
453
+
454
+ # @return [String]
455
+ def detailed_message
456
+ @data[:detailed_message]
457
+ end
458
+
459
+ # @return [String]
460
+ def request_id
461
+ @data[:request_id]
462
+ end
463
+
464
+ # @return [String]
465
+ def code
466
+ @code || @data[:code]
467
+ end
468
+ end
469
+
470
+ class MLResourceNotFoundException < ServiceError
471
+
472
+ # @param [Seahorse::Client::RequestContext] context
473
+ # @param [String] message
474
+ # @param [Aws::Neptunedata::Types::MLResourceNotFoundException] data
475
+ def initialize(context, message, data = Aws::EmptyStructure.new)
476
+ super(context, message, data)
477
+ end
478
+
479
+ # @return [String]
480
+ def detailed_message
481
+ @data[:detailed_message]
482
+ end
483
+
484
+ # @return [String]
485
+ def request_id
486
+ @data[:request_id]
487
+ end
488
+
489
+ # @return [String]
490
+ def code
491
+ @code || @data[:code]
492
+ end
493
+ end
494
+
495
+ class MalformedQueryException < ServiceError
496
+
497
+ # @param [Seahorse::Client::RequestContext] context
498
+ # @param [String] message
499
+ # @param [Aws::Neptunedata::Types::MalformedQueryException] data
500
+ def initialize(context, message, data = Aws::EmptyStructure.new)
501
+ super(context, message, data)
502
+ end
503
+
504
+ # @return [String]
505
+ def detailed_message
506
+ @data[:detailed_message]
507
+ end
508
+
509
+ # @return [String]
510
+ def request_id
511
+ @data[:request_id]
512
+ end
513
+
514
+ # @return [String]
515
+ def code
516
+ @code || @data[:code]
517
+ end
518
+ end
519
+
520
+ class MemoryLimitExceededException < ServiceError
521
+
522
+ # @param [Seahorse::Client::RequestContext] context
523
+ # @param [String] message
524
+ # @param [Aws::Neptunedata::Types::MemoryLimitExceededException] data
525
+ def initialize(context, message, data = Aws::EmptyStructure.new)
526
+ super(context, message, data)
527
+ end
528
+
529
+ # @return [String]
530
+ def detailed_message
531
+ @data[:detailed_message]
532
+ end
533
+
534
+ # @return [String]
535
+ def request_id
536
+ @data[:request_id]
537
+ end
538
+
539
+ # @return [String]
540
+ def code
541
+ @code || @data[:code]
542
+ end
543
+
544
+ def retryable?
545
+ true
546
+ end
547
+ end
548
+
549
+ class MethodNotAllowedException < ServiceError
550
+
551
+ # @param [Seahorse::Client::RequestContext] context
552
+ # @param [String] message
553
+ # @param [Aws::Neptunedata::Types::MethodNotAllowedException] data
554
+ def initialize(context, message, data = Aws::EmptyStructure.new)
555
+ super(context, message, data)
556
+ end
557
+
558
+ # @return [String]
559
+ def detailed_message
560
+ @data[:detailed_message]
561
+ end
562
+
563
+ # @return [String]
564
+ def request_id
565
+ @data[:request_id]
566
+ end
567
+
568
+ # @return [String]
569
+ def code
570
+ @code || @data[:code]
571
+ end
572
+ end
573
+
574
+ class MissingParameterException < ServiceError
575
+
576
+ # @param [Seahorse::Client::RequestContext] context
577
+ # @param [String] message
578
+ # @param [Aws::Neptunedata::Types::MissingParameterException] data
579
+ def initialize(context, message, data = Aws::EmptyStructure.new)
580
+ super(context, message, data)
581
+ end
582
+
583
+ # @return [String]
584
+ def detailed_message
585
+ @data[:detailed_message]
586
+ end
587
+
588
+ # @return [String]
589
+ def request_id
590
+ @data[:request_id]
591
+ end
592
+
593
+ # @return [String]
594
+ def code
595
+ @code || @data[:code]
596
+ end
597
+ end
598
+
599
+ class ParsingException < ServiceError
600
+
601
+ # @param [Seahorse::Client::RequestContext] context
602
+ # @param [String] message
603
+ # @param [Aws::Neptunedata::Types::ParsingException] data
604
+ def initialize(context, message, data = Aws::EmptyStructure.new)
605
+ super(context, message, data)
606
+ end
607
+
608
+ # @return [String]
609
+ def detailed_message
610
+ @data[:detailed_message]
611
+ end
612
+
613
+ # @return [String]
614
+ def request_id
615
+ @data[:request_id]
616
+ end
617
+
618
+ # @return [String]
619
+ def code
620
+ @code || @data[:code]
621
+ end
622
+ end
623
+
624
+ class PreconditionsFailedException < ServiceError
625
+
626
+ # @param [Seahorse::Client::RequestContext] context
627
+ # @param [String] message
628
+ # @param [Aws::Neptunedata::Types::PreconditionsFailedException] data
629
+ def initialize(context, message, data = Aws::EmptyStructure.new)
630
+ super(context, message, data)
631
+ end
632
+
633
+ # @return [String]
634
+ def detailed_message
635
+ @data[:detailed_message]
636
+ end
637
+
638
+ # @return [String]
639
+ def request_id
640
+ @data[:request_id]
641
+ end
642
+
643
+ # @return [String]
644
+ def code
645
+ @code || @data[:code]
646
+ end
647
+ end
648
+
649
+ class QueryLimitExceededException < ServiceError
650
+
651
+ # @param [Seahorse::Client::RequestContext] context
652
+ # @param [String] message
653
+ # @param [Aws::Neptunedata::Types::QueryLimitExceededException] data
654
+ def initialize(context, message, data = Aws::EmptyStructure.new)
655
+ super(context, message, data)
656
+ end
657
+
658
+ # @return [String]
659
+ def detailed_message
660
+ @data[:detailed_message]
661
+ end
662
+
663
+ # @return [String]
664
+ def request_id
665
+ @data[:request_id]
666
+ end
667
+
668
+ # @return [String]
669
+ def code
670
+ @code || @data[:code]
671
+ end
672
+
673
+ def retryable?
674
+ true
675
+ end
676
+ end
677
+
678
+ class QueryLimitException < ServiceError
679
+
680
+ # @param [Seahorse::Client::RequestContext] context
681
+ # @param [String] message
682
+ # @param [Aws::Neptunedata::Types::QueryLimitException] data
683
+ def initialize(context, message, data = Aws::EmptyStructure.new)
684
+ super(context, message, data)
685
+ end
686
+
687
+ # @return [String]
688
+ def detailed_message
689
+ @data[:detailed_message]
690
+ end
691
+
692
+ # @return [String]
693
+ def request_id
694
+ @data[:request_id]
695
+ end
696
+
697
+ # @return [String]
698
+ def code
699
+ @code || @data[:code]
700
+ end
701
+ end
702
+
703
+ class QueryTooLargeException < ServiceError
704
+
705
+ # @param [Seahorse::Client::RequestContext] context
706
+ # @param [String] message
707
+ # @param [Aws::Neptunedata::Types::QueryTooLargeException] data
708
+ def initialize(context, message, data = Aws::EmptyStructure.new)
709
+ super(context, message, data)
710
+ end
711
+
712
+ # @return [String]
713
+ def detailed_message
714
+ @data[:detailed_message]
715
+ end
716
+
717
+ # @return [String]
718
+ def request_id
719
+ @data[:request_id]
720
+ end
721
+
722
+ # @return [String]
723
+ def code
724
+ @code || @data[:code]
725
+ end
726
+ end
727
+
728
+ class ReadOnlyViolationException < ServiceError
729
+
730
+ # @param [Seahorse::Client::RequestContext] context
731
+ # @param [String] message
732
+ # @param [Aws::Neptunedata::Types::ReadOnlyViolationException] data
733
+ def initialize(context, message, data = Aws::EmptyStructure.new)
734
+ super(context, message, data)
735
+ end
736
+
737
+ # @return [String]
738
+ def detailed_message
739
+ @data[:detailed_message]
740
+ end
741
+
742
+ # @return [String]
743
+ def request_id
744
+ @data[:request_id]
745
+ end
746
+
747
+ # @return [String]
748
+ def code
749
+ @code || @data[:code]
750
+ end
751
+ end
752
+
753
+ class S3Exception < ServiceError
754
+
755
+ # @param [Seahorse::Client::RequestContext] context
756
+ # @param [String] message
757
+ # @param [Aws::Neptunedata::Types::S3Exception] data
758
+ def initialize(context, message, data = Aws::EmptyStructure.new)
759
+ super(context, message, data)
760
+ end
761
+
762
+ # @return [String]
763
+ def detailed_message
764
+ @data[:detailed_message]
765
+ end
766
+
767
+ # @return [String]
768
+ def request_id
769
+ @data[:request_id]
770
+ end
771
+
772
+ # @return [String]
773
+ def code
774
+ @code || @data[:code]
775
+ end
776
+
777
+ def retryable?
778
+ true
779
+ end
780
+ end
781
+
782
+ class ServerShutdownException < ServiceError
783
+
784
+ # @param [Seahorse::Client::RequestContext] context
785
+ # @param [String] message
786
+ # @param [Aws::Neptunedata::Types::ServerShutdownException] data
787
+ def initialize(context, message, data = Aws::EmptyStructure.new)
788
+ super(context, message, data)
789
+ end
790
+
791
+ # @return [String]
792
+ def detailed_message
793
+ @data[:detailed_message]
794
+ end
795
+
796
+ # @return [String]
797
+ def request_id
798
+ @data[:request_id]
799
+ end
800
+
801
+ # @return [String]
802
+ def code
803
+ @code || @data[:code]
804
+ end
805
+ end
806
+
807
+ class StatisticsNotAvailableException < ServiceError
808
+
809
+ # @param [Seahorse::Client::RequestContext] context
810
+ # @param [String] message
811
+ # @param [Aws::Neptunedata::Types::StatisticsNotAvailableException] data
812
+ def initialize(context, message, data = Aws::EmptyStructure.new)
813
+ super(context, message, data)
814
+ end
815
+
816
+ # @return [String]
817
+ def detailed_message
818
+ @data[:detailed_message]
819
+ end
820
+
821
+ # @return [String]
822
+ def request_id
823
+ @data[:request_id]
824
+ end
825
+
826
+ # @return [String]
827
+ def code
828
+ @code || @data[:code]
829
+ end
830
+ end
831
+
832
+ class StreamRecordsNotFoundException < ServiceError
833
+
834
+ # @param [Seahorse::Client::RequestContext] context
835
+ # @param [String] message
836
+ # @param [Aws::Neptunedata::Types::StreamRecordsNotFoundException] data
837
+ def initialize(context, message, data = Aws::EmptyStructure.new)
838
+ super(context, message, data)
839
+ end
840
+
841
+ # @return [String]
842
+ def detailed_message
843
+ @data[:detailed_message]
844
+ end
845
+
846
+ # @return [String]
847
+ def request_id
848
+ @data[:request_id]
849
+ end
850
+
851
+ # @return [String]
852
+ def code
853
+ @code || @data[:code]
854
+ end
855
+ end
856
+
857
+ class ThrottlingException < ServiceError
858
+
859
+ # @param [Seahorse::Client::RequestContext] context
860
+ # @param [String] message
861
+ # @param [Aws::Neptunedata::Types::ThrottlingException] data
862
+ def initialize(context, message, data = Aws::EmptyStructure.new)
863
+ super(context, message, data)
864
+ end
865
+
866
+ # @return [String]
867
+ def detailed_message
868
+ @data[:detailed_message]
869
+ end
870
+
871
+ # @return [String]
872
+ def request_id
873
+ @data[:request_id]
874
+ end
875
+
876
+ # @return [String]
877
+ def code
878
+ @code || @data[:code]
879
+ end
880
+
881
+ def retryable?
882
+ true
883
+ end
884
+ end
885
+
886
+ class TimeLimitExceededException < ServiceError
887
+
888
+ # @param [Seahorse::Client::RequestContext] context
889
+ # @param [String] message
890
+ # @param [Aws::Neptunedata::Types::TimeLimitExceededException] data
891
+ def initialize(context, message, data = Aws::EmptyStructure.new)
892
+ super(context, message, data)
893
+ end
894
+
895
+ # @return [String]
896
+ def detailed_message
897
+ @data[:detailed_message]
898
+ end
899
+
900
+ # @return [String]
901
+ def request_id
902
+ @data[:request_id]
903
+ end
904
+
905
+ # @return [String]
906
+ def code
907
+ @code || @data[:code]
908
+ end
909
+
910
+ def retryable?
911
+ true
912
+ end
913
+ end
914
+
915
+ class TooManyRequestsException < ServiceError
916
+
917
+ # @param [Seahorse::Client::RequestContext] context
918
+ # @param [String] message
919
+ # @param [Aws::Neptunedata::Types::TooManyRequestsException] data
920
+ def initialize(context, message, data = Aws::EmptyStructure.new)
921
+ super(context, message, data)
922
+ end
923
+
924
+ # @return [String]
925
+ def detailed_message
926
+ @data[:detailed_message]
927
+ end
928
+
929
+ # @return [String]
930
+ def request_id
931
+ @data[:request_id]
932
+ end
933
+
934
+ # @return [String]
935
+ def code
936
+ @code || @data[:code]
937
+ end
938
+
939
+ def retryable?
940
+ true
941
+ end
942
+ end
943
+
944
+ class UnsupportedOperationException < ServiceError
945
+
946
+ # @param [Seahorse::Client::RequestContext] context
947
+ # @param [String] message
948
+ # @param [Aws::Neptunedata::Types::UnsupportedOperationException] data
949
+ def initialize(context, message, data = Aws::EmptyStructure.new)
950
+ super(context, message, data)
951
+ end
952
+
953
+ # @return [String]
954
+ def detailed_message
955
+ @data[:detailed_message]
956
+ end
957
+
958
+ # @return [String]
959
+ def request_id
960
+ @data[:request_id]
961
+ end
962
+
963
+ # @return [String]
964
+ def code
965
+ @code || @data[:code]
966
+ end
967
+ end
968
+
969
+ end
970
+ end