Exception: Fintoc::Errors::FintocError
- Inherits:
-
StandardError
- Object
- StandardError
- Fintoc::Errors::FintocError
- Defined in:
- lib/fintoc/errors.rb
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 = Fintoc::Constants::GENERAL_DOC_URL) ⇒ FintocError
constructor
A new instance of FintocError.
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(message, doc_url = Fintoc::Constants::GENERAL_DOC_URL) ⇒ FintocError
Returns a new instance of FintocError.
6 7 8 9 |
# File 'lib/fintoc/errors.rb', line 6 def initialize(, doc_url = Fintoc::Constants::GENERAL_DOC_URL) @message = @doc_url = doc_url end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/fintoc/errors.rb', line 11 def "\n#{@message}\n Please check the docs at: #{@doc_url}" end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/fintoc/errors.rb', line 15 def to_s end |