Class: NetSuite::Error
- Inherits:
-
Object
- Object
- NetSuite::Error
- Defined in:
- lib/netsuite/errors.rb
Overview
NOTE not an exception, used as a wrapped around NetSuite SOAP error
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Error
constructor
A new instance of Error.
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
#code ⇒ Object
Returns the value of attribute code.
8 9 10 |
# File 'lib/netsuite/errors.rb', line 8 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
8 9 10 |
# File 'lib/netsuite/errors.rb', line 8 def @message end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/netsuite/errors.rb', line 8 def type @type end |