Files
gitlab-foss/lib/web_ide/settings/messages.rb
2025-02-13 18:12:49 +00:00

26 lines
1.2 KiB
Ruby

# frozen_string_literal: true
module WebIde
module Settings
# This module contains all messages for the Web IDE Settings sub-domain, both errors and domain events.
# Note that we intentionally have not DRY'd up the declaration of the subclasses with loops and
# metaprogramming, because we want the types to be easily indexable and navigable within IDEs.
module Messages
#---------------------------------------------------------------
# Errors - message name should describe the reason for the error
#---------------------------------------------------------------
SettingsCurrentSettingsReadFailed = Class.new(Gitlab::Fp::Message)
SettingsEnvironmentVariableOverrideFailed = Class.new(Gitlab::Fp::Message)
SettingsVscodeExtensionMarketplaceValidationFailed = Class.new(Gitlab::Fp::Message)
SettingsVscodeExtensionMarketplaceMetadataValidationFailed = Class.new(Gitlab::Fp::Message)
#---------------------------------------------------------
# Domain Events - message name should describe the outcome
#---------------------------------------------------------
SettingsGetSuccessful = Class.new(Gitlab::Fp::Message)
end
end
end