Exception: PaystackSdk::ResourceNotFoundError

Inherits:
APIError
  • Object
show all
Defined in:
lib/paystack_sdk.rb

Overview

Raised when a resource is not found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_type, message) ⇒ ResourceNotFoundError

Returns a new instance of ResourceNotFoundError.



66
67
68
69
# File 'lib/paystack_sdk.rb', line 66

def initialize(resource_type, message)
  @resource_type = resource_type
  super(message)
end

Instance Attribute Details

#resource_typeObject (readonly)

Returns the value of attribute resource_type.



64
65
66
# File 'lib/paystack_sdk.rb', line 64

def resource_type
  @resource_type
end