Exception: Recurly::Resource::NotFound

Inherits:
API::NotFound show all
Defined in:
lib/recurly/resource.rb

Overview

Raised when a record cannot be found.

Examples:

begin
  Recurly::Account.find 'tortuga'
rescue Recurly::Resource::NotFound => e
  e.message # => "Can't find Account with account_code = tortuga"
end

Instance Attribute Summary

Attributes inherited from API::ResponseError

#request, #response

Instance Method Summary collapse

Methods inherited from API::ResponseError

#code, #description, #details, #symbol, #to_s

Methods inherited from Error

#set_message, #to_s

Constructor Details

#initialize(message) ⇒ NotFound

Returns a new instance of NotFound.



127
128
129
# File 'lib/recurly/resource.rb', line 127

def initialize message
  set_message message
end