Exception: PaystackSdk::MissingParamError

Inherits:
ValidationError show all
Defined in:
lib/paystack_sdk.rb

Overview

Raised when a required parameter is missing. Contains the parameter name for detailed error handling.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param_name) ⇒ MissingParamError

Returns a new instance of MissingParamError.



21
22
23
24
# File 'lib/paystack_sdk.rb', line 21

def initialize(param_name)
  @param_name = param_name
  super("Missing required parameter: #{param_name}")
end

Instance Attribute Details

#param_nameObject (readonly)

Returns the value of attribute param_name.



19
20
21
# File 'lib/paystack_sdk.rb', line 19

def param_name
  @param_name
end