Sha256: f1536d8435602354b0837e91c71b6f58c3c14e4a7d01f6b61662886cde6f92e6

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

# frozen_string_literal: true

module Tikkie
  module Api
    module V1
      # Tikkie base exception.
      class Exception < RuntimeError
      end

      # Exception when the authentication fails.
      class AuthenticationException < Tikkie::Api::V1::Exception
        attr_reader :response, :body

        def initialize(response)
          @response = response
          @body = response.body

          message = "Authentication failure at Tikkie"
          super(message)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tikkie-api-2.0.0 lib/tikkie/api/v1/exception.rb