module Zuora
  module ErrorHandler
    class UnknownError < StandardError; end
    class APIError < StandardError; end
    class NotFound < StandardError; end
    class BadRequest < StandardError; end
  end
end

module Zuora
  module ErrorHandler
    class BaseError < StandardError; end
    class UnknownError < BaseError; end
    class APIError < BaseError; end
    class NotFound < BaseError; end
    class BadRequest < BaseError; end
  end
end

Create a Base Error class for easy exception rescuing
Create a Base Error class for easy exception rescuing