Initial commit

This commit is contained in:
Yaser
2026-08-13 19:56:46 +03:30
commit de1d57a67b
474 changed files with 43185 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# frozen_string_literal: true
module API::V2
module Management
module Exceptions
class Authentication < Base
def status
@options.fetch(:status, 401)
end
end
end
end
end

View File

@@ -0,0 +1,22 @@
# frozen_string_literal: true
module API::V2
module Management
module Exceptions
class Base < StandardError
def initialize(message:, **options)
@options = options
super(message)
end
def headers
@options.fetch(:headers, {})
end
def status
@options.fetch(:status)
end
end
end
end
end