class Domainr::Error
Attributes
code[R]
@return [Integer]
Public Class Methods
from_response(error)
click to toggle source
# File lib/domainr/error.rb, line 6 def self.from_response(error) new(error['message'], error['status']) end
new(message = '', code = nil)
click to toggle source
Initializes a new Error
object
@param message [Exception, String] @param code [Integer] @return [Instapaper::Error]
Calls superclass method
# File lib/domainr/error.rb, line 15 def initialize(message = '', code = nil) super(message) @code = code end