Files
ubicloud/clover_error.rb
Jeremy Evans 7beff27a3e Remove CloverError#message
We can rely on the inheritance from Exception#message.
2024-11-27 12:13:59 -08:00

19 lines
358 B
Ruby

# frozen_string_literal: true
class CloverError < StandardError
attr_reader :code, :type, :details
def initialize(code, type, message, details = nil)
@code = code
@type = type
@details = details
super(message)
end
end
class DependencyError < CloverError
def initialize(message)
super(409, "DependencyError", message)
end
end