Exception: TwelvedataRuby::EndpointError
- Defined in:
- lib/twelvedata_ruby/error.rb
Overview
Base class for endpoint-related errors
Direct Known Subclasses
EndpointNameError, EndpointParametersKeysError, EndpointRequiredParametersError
Constant Summary
Constants inherited from Error
TwelvedataRuby::Error::DEFAULT_MESSAGES
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(endpoint:, invalid:, **options) ⇒ EndpointError
constructor
A new instance of EndpointError.
Methods inherited from Error
Constructor Details
#initialize(endpoint:, invalid:, **options) ⇒ EndpointError
Returns a new instance of EndpointError.
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/twelvedata_ruby/error.rb', line 53 def initialize(endpoint:, invalid:, **) attributes = { name: endpoint.name, invalid: invalid, valid_names: endpoint.class.names.join(", "), parameters: endpoint&.parameters_keys&.join(", "), required: endpoint&.required_parameters&.join(", "), } super(attributes: attributes, **) end |