Sha256: 1736f2fcb512af6613ea55dcf04523d383c2ac07231bc05f382b9e7505747ec2

Contents?: true

Size: 366 Bytes

Versions: 53

Compression:

Stored size: 366 Bytes

Contents

module IntacctRB
  module Exceptions
    class Base < StandardError
      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
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
intacctrb-0.9.6 lib/intacctrb/exceptions/base.rb
intacctrb-0.9.5 lib/intacctrb/exceptions/base.rb
intacctrb-0.9.4 lib/intacctrb/exceptions/base.rb
intacctrb-0.9.3 lib/intacctrb/exceptions/base.rb
intacctrb-0.9.2 lib/intacctrb/exceptions/base.rb
intacctrb-0.9.1 lib/intacctrb/exceptions/base.rb
intacctrb-0.9.0 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.21 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.20 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.19 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.18 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.17 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.16 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.15 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.14 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.13 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.12 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.11 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.10 lib/intacctrb/exceptions/base.rb
intacctrb-0.8.9 lib/intacctrb/exceptions/base.rb