lib/zuora/rest.rb in zuora-ruby-0.5.0 vs lib/zuora/rest.rb in zuora-ruby-0.6.0
- old
+ new
@@ -1,14 +1,15 @@
+# frozen_string_literal: true
module Zuora
module Rest
API_URL = 'https://api.zuora.com/rest/v1/'.freeze
SANDBOX_URL = 'https://apisandbox-api.zuora.com/rest/v1/'.freeze
# Unable to connect. Check username / password
- ConnectionError = Class.new StandardError
+ ConnectionError = Class.new Errors::GenericError
# Non-success response
- class ErrorResponse < StandardError
+ class ErrorResponse < Errors::GenericError
attr_reader :response
def initialize(message = nil, response = nil)
super(message)
@response = response