From 1ec2afaa21b8c3ef336982e80259b9bb79e3fb32 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Tue, 28 Apr 2026 14:10:04 +0900 Subject: updates --- lib/dispatch/adapter/errors.rb | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 lib/dispatch/adapter/errors.rb (limited to 'lib/dispatch/adapter/errors.rb') diff --git a/lib/dispatch/adapter/errors.rb b/lib/dispatch/adapter/errors.rb deleted file mode 100644 index 86f9c14..0000000 --- a/lib/dispatch/adapter/errors.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -module Dispatch - module Adapter - class Error < StandardError - attr_reader :status_code, :provider - - def initialize(message = nil, status_code: nil, provider: nil) - @status_code = status_code - @provider = provider - super(message) - end - end - - class AuthenticationError < Error; end - - class RateLimitError < Error - attr_reader :retry_after - - def initialize(message = nil, status_code: nil, provider: nil, retry_after: nil) - @retry_after = retry_after - super(message, status_code:, provider:) - end - end - - class ServerError < Error; end - class RequestError < Error; end - class ConnectionError < Error; end - end -end -- cgit v1.2.3