File: errors.rbs

package info (click to toggle)
ruby-aws-sdk-core 3.212.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,232 kB
  • sloc: ruby: 17,533; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 639 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module Aws
  module Errors
    class NonSupportedRubyVersionError < RuntimeError
    end

    # The base class for all errors returned by an Amazon Web Service.
    # All ~400 level client errors and ~500 level server errors are raised
    # as service errors.  This indicates it was an error returned from the
    # service and not one generated by the client.
    class ServiceError < RuntimeError
      def initialize: (untyped context, String? message, ?untyped data) -> void

      attr_reader code: String

      attr_reader context: untyped

      attr_reader data: untyped

      attr_accessor self.code: String?
    end
  end
end