Exception: AsposeImagingCloud::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aspose-imaging-cloud/api_error.rb

Overview

Imaging API Exception

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code, error = nil) ⇒ ApiError

Initializes a new instance of the ApiError class

Parameters:

  • message (String)
  • code (String)
  • error (String) (defaults to: nil)


36
37
38
39
40
# File 'lib/aspose-imaging-cloud/api_error.rb', line 36

def initialize(message, code, error = nil)
  @message = message
  @code = code
  @error = error
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



30
31
32
# File 'lib/aspose-imaging-cloud/api_error.rb', line 30

def code
  @code
end

#errorObject (readonly)

Returns the value of attribute error.



30
31
32
# File 'lib/aspose-imaging-cloud/api_error.rb', line 30

def error
  @error
end

#messageObject (readonly)

Returns the value of attribute message.



30
31
32
# File 'lib/aspose-imaging-cloud/api_error.rb', line 30

def message
  @message
end