Exception: Buda::Errors::BudaError
- Inherits:
-
StandardError
- Object
- StandardError
- Buda::Errors::BudaError
- Defined in:
- lib/buda/errors.rb
Overview
Error definitions for handling wrong requests
Direct Known Subclasses
ApiError, AuthenticationError, EmptyStringError, InstitutionError, InternalServerError, InvalidApiKeyError, InvalidCredentialsError, InvalidDateError, InvalidHolderTypeError, InvalidLinkTokenError, InvalidRequestError, InvalidUsernameError, LinkError, LockedCredentialsError, MissingParameterError, MissingResourceError, UnavailableInstitutionError, UnrecognizedRequestError
Instance Method Summary collapse
-
#initialize(message, doc_url = Buda::Constants::GENERAL_DOC_URL) ⇒ BudaError
constructor
A new instance of BudaError.
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(message, doc_url = Buda::Constants::GENERAL_DOC_URL) ⇒ BudaError
Returns a new instance of BudaError.
9 10 11 12 13 |
# File 'lib/buda/errors.rb', line 9 def initialize(, doc_url = Buda::Constants::GENERAL_DOC_URL) super() @message = @doc_url = doc_url end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/buda/errors.rb', line 15 def "\n#{@message}\n Please check the docs at: #{@doc_url}" end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/buda/errors.rb', line 19 def to_s end |