Exception: IntacctRB::Exceptions::Base

Inherits:
StandardError
  • Object
show all
Defined in:
lib/intacctrb/exceptions/base.rb

Direct Known Subclasses

APPayment, Attachment, Bill, Vendor

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Base

Returns a new instance of Base.



4
5
6
7
8
9
10
# File 'lib/intacctrb/exceptions/base.rb', line 4

def initialize(message)
  error_class = self.class.to_s
  error_class = error_class.split('::').last if error_class.index('::')
  error_message = "#{error_class} error: "
  error_message += message || 'Unknown'
  super(error_message)
end