Exception: Fintoc::Errors::FintocError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fintoc/errors.rb

Instance Method Summary collapse

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(message, doc_url = Fintoc::Constants::GENERAL_DOC_URL)
  @message = message
  @doc_url = doc_url
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/fintoc/errors.rb', line 11

def message
  "\n#{@message}\n Please check the docs at: #{@doc_url}"
end

#to_sObject



15
16
17
# File 'lib/fintoc/errors.rb', line 15

def to_s
  message
end