Class: Aws::Neptunedata::Errors::CancelledByUserException
- Inherits:
-
ServiceError
- Object
- ServiceError
- Aws::Neptunedata::Errors::CancelledByUserException
- Defined in:
- lib/aws-sdk-neptunedata/errors.rb
Instance Method Summary collapse
- #code ⇒ String
- #detailed_message(**kwargs) ⇒ String
-
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ CancelledByUserException
constructor
A new instance of CancelledByUserException.
- #request_id ⇒ String
Constructor Details
#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ CancelledByUserException
Returns a new instance of CancelledByUserException.
173 174 175 |
# File 'lib/aws-sdk-neptunedata/errors.rb', line 173 def initialize(context, , data = Aws::EmptyStructure.new) super(context, , data) end |
Instance Method Details
#code ⇒ String
194 195 196 |
# File 'lib/aws-sdk-neptunedata/errors.rb', line 194 def code @code || @data[:code] end |
#detailed_message(**kwargs) ⇒ String
Note:
This member shadows Exception#detailed_message on Ruby 3.2+. Use ‘error.data.detailed_message` to access the API member directly.
180 181 182 183 184 185 186 |
# File 'lib/aws-sdk-neptunedata/errors.rb', line 180 def (**kwargs) if kwargs.empty? @data[:detailed_message] else super end end |
#request_id ⇒ String
189 190 191 |
# File 'lib/aws-sdk-neptunedata/errors.rb', line 189 def request_id @data[:request_id] end |