Exception: DhanHQ::Error
- Inherits:
-
StandardError
- Object
- StandardError
- DhanHQ::Error
- Defined in:
- lib/DhanHQ/errors.rb,
lib/dhan_hq.rb
Overview
Base error class for all DhanHQ API errors. When raised from API response handling, #response_body holds the parsed error payload.
Direct Known Subclasses
AuthenticationError, AuthenticationFailedError, DataError, InputExceptionError, InternalServerError, InvalidAccessError, InvalidAuthenticationError, InvalidClientIDError, InvalidRequestError, InvalidTokenError, LiveTradingDisabledError, ModificationLimitError, NetworkError, NoHoldingsError, NotFoundError, OrderError, OtherError, RateLimitError, TokenEndpointError, TokenExpiredError, UserAccountError, ValidationError
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
Instance Method Summary collapse
-
#initialize(message = nil, response_body: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, response_body: nil) ⇒ Error
Returns a new instance of Error.
9 10 11 12 |
# File 'lib/DhanHQ/errors.rb', line 9 def initialize( = nil, response_body: nil) super() @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
7 8 9 |
# File 'lib/DhanHQ/errors.rb', line 7 def response_body @response_body end |