summaryrefslogtreecommitdiffhomepage
path: root/lib/dispatch/adapter/errors.rb
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-04-28 14:10:04 +0900
committerAdam Malczewski <[email protected]>2026-04-28 14:10:04 +0900
commit1ec2afaa21b8c3ef336982e80259b9bb79e3fb32 (patch)
tree7cf43fbd4efc6d6834744d800822255fd3d44d05 /lib/dispatch/adapter/errors.rb
parente6c2f23b58a1e87088ee75632c74fee4f15f6a94 (diff)
downloaddispatch-adapter-copilot-1ec2afaa21b8c3ef336982e80259b9bb79e3fb32.tar.gz
dispatch-adapter-copilot-1ec2afaa21b8c3ef336982e80259b9bb79e3fb32.zip
updatesdev
Diffstat (limited to 'lib/dispatch/adapter/errors.rb')
-rw-r--r--lib/dispatch/adapter/errors.rb30
1 files changed, 0 insertions, 30 deletions
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