lib/netsuite/errors.rb in netsuite-0.2.0 vs lib/netsuite/errors.rb in netsuite-0.2.1

- old
+ new

@@ -1,5 +1,15 @@ 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 + end end