Sha256: e15ff6ea9f3190c10fb790aade5c6938f90f09547ff16e1d646baecbc8f5a862

Contents?: true

Size: 459 Bytes

Versions: 13

Compression:

Stored size: 459 Bytes

Contents

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

  # NOTE not an exception, used as a wrapped around NetSuite SOAP error
  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

13 entries across 13 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/errors.rb
netsuite-0.9.2 lib/netsuite/errors.rb
netsuite-0.9.1 lib/netsuite/errors.rb
netsuite-0.9.0 lib/netsuite/errors.rb
netsuite-0.8.12 lib/netsuite/errors.rb
netsuite-0.8.11 lib/netsuite/errors.rb
netsuite-0.8.10 lib/netsuite/errors.rb
netsuite-0.8.9 lib/netsuite/errors.rb
netsuite-0.8.8 lib/netsuite/errors.rb
netsuite-0.8.7 lib/netsuite/errors.rb
netsuite-0.8.6 lib/netsuite/errors.rb
netsuite-0.8.5 lib/netsuite/errors.rb
netsuite-0.8.4 lib/netsuite/errors.rb