Sha256: 1f3830381ba9984d4bf5cf6736fdb077db09720c47ba1d8d34d3c2e12fe1f7ee

Contents?: true

Size: 717 Bytes

Versions: 4

Compression:

Stored size: 717 Bytes

Contents

# frozen_string_literal: true

module Workato
  module Connector
    module Sdk
      InvalidDefinitionError = Class.new(StandardError)

      CustomRequestError = Class.new(StandardError)

      class RequestError < StandardError
        attr_reader :method,
                    :code,
                    :response

        def initialize(message:, method:, code:, response:)
          super(message)
          @method = method
          @code = code
          @response = response
        end
      end

      class NotImplementedError < RuntimeError
        def initialize(msg = 'This part of Connector SDK is not implemented in workato-connector-sdk yet')
          super
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workato-connector-sdk-0.2.0 lib/workato/connector/sdk/errors.rb
workato-connector-sdk-0.1.2 lib/workato/connector/sdk/errors.rb
workato-connector-sdk-0.1.1 lib/workato/connector/sdk/errors.rb
workato-connector-sdk-0.1.0 lib/workato/connector/sdk/errors.rb