class RosetteAPIError

This class encapsulates all Rosette API server errors encountered during requests.

Attributes

message[RW]

Rosette API error’s message

status_code[RW]

Rosette API error’s status code

Protected Instance Methods

initialize(status_code, message) click to toggle source
Calls superclass method
# File rosette_api_error.rb, line 11
def initialize(status_code, message) # :notnew:
  @status_code = status_code
  @message = message
  super(message)
end