Exception: OpenApiError::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cdnetworks-client/open_api_error.rb

Direct Known Subclasses

ApiError, CriticalApiError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, code = nil, body = nil) ⇒ BaseError

Returns a new instance of BaseError.



17
18
19
20
21
# File 'lib/cdnetworks-client/open_api_error.rb', line 17

def initialize(error, code = nil, body = nil)
  @code = code
  @body = body
  super(error)
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



15
16
17
# File 'lib/cdnetworks-client/open_api_error.rb', line 15

def body
  @body
end

#codeObject

Returns the value of attribute code.



15
16
17
# File 'lib/cdnetworks-client/open_api_error.rb', line 15

def code
  @code
end