23 lines
397 B
Ruby
23 lines
397 B
Ruby
# 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
|