Class: Aws::Stubbing::XmlError Private
- Inherits:
-
Object
- Object
- Aws::Stubbing::XmlError
- Defined in:
- lib/aws-sdk-core/stubbing/xml_error.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize(error_code) ⇒ XmlError
constructor
private
A new instance of XmlError.
- #to_xml ⇒ Object private
Constructor Details
#initialize(error_code) ⇒ XmlError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of XmlError.
5 6 7 |
# File 'lib/aws-sdk-core/stubbing/xml_error.rb', line 5 def initialize(error_code) @error_code = error_code end |
Instance Method Details
#to_xml ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/aws-sdk-core/stubbing/xml_error.rb', line 9 def to_xml <<-XML.strip <ErrorResponse> <Error> <Code>#{@error_code}</Code> <Message>stubbed-response-error-message</Message> </Error> </ErrorResponse> XML end |