class Comet::APIResponseError
APIResponseError
is a custom exception class that wraps the Comet::CometAPIResponseMessage
type. These represent application-level error responses from the Comet
Server API. Network-level error responses should be caught using the Net::HTTP error types.
Attributes
detail[R]
@type [Comet::CometAPIResponseMessage] The application-level error
Public Class Methods
new(carm)
click to toggle source
Calls superclass method
# File lib/comet/api_response_error.rb, line 20 def initialize(carm) @detail = carm super("#{carm.message} (#{carm.status})") end