Sha256: 83495ae3e05bfaf01dc6755e577172efbb4482e22a81af6ad577ad8af4de1143

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

module NetSuite
  class RecordNotFound < StandardError; end
  class InitializationError < StandardError; end
  class ConfigurationError < StandardError; end

  class Error
    attr_accessor :type, :code, :message

    def initialize(args = {})
      @type    = args[:@type]
      @code    = args[:code]
      @message = args[:message]
    end

    alias_method :to_s, :inspect
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
netsuite-0.8.3 lib/netsuite/errors.rb
netsuite-0.8.2 lib/netsuite/errors.rb