Class: NetSuite::Error

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

Overview

NOTE not an exception, used as a wrapped around NetSuite SOAP error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Error

Returns a new instance of Error.



10
11
12
13
14
# File 'lib/netsuite/errors.rb', line 10

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



8
9
10
# File 'lib/netsuite/errors.rb', line 8

def code
  @code
end

#messageObject

Returns the value of attribute message.



8
9
10
# File 'lib/netsuite/errors.rb', line 8

def message
  @message
end

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/netsuite/errors.rb', line 8

def type
  @type
end