Skip to content

Commit

Permalink
Restore and deprecated AlreadyIncludedError
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Jun 18, 2024
1 parent 8097a38 commit ca63b93
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/dry/configurable/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ module Dry
#
# @api public
module Configurable
extend Dry::Core::Deprecations["dry-configurable"]

Error = Class.new(::StandardError)

FrozenConfigError = Class.new(Error)

AlreadyIncludedError = Class.new(Error)
deprecate_constant(
:AlreadyIncludedError,
message: "`include Dry::Configurable` more than once (if needed)"
)
end
end

0 comments on commit ca63b93

Please sign in to comment.