lib/flipper/errors.rb in flipper-0.24.1 vs lib/flipper/errors.rb in flipper-0.25.0
- old
+ new
@@ -10,30 +10,13 @@
end
# Raised when attempting to declare a group name that has already been used.
class DuplicateGroup < Error; end
- # Raised when default instance not configured but there is an attempt to
- # use it.
- class DefaultNotSet < Flipper::Error
- def initialize(message = nil)
- warn "Flipper::DefaultNotSet is deprecated and will be removed in 1.0"
- super
- end
- end
-
# Raised when an invalid value is set to a configuration property
class InvalidConfigurationValue < Flipper::Error
def initialize(message = nil)
default = "Configuration value is not valid."
- super(message || default)
- end
- end
-
- # Raised when accessing a configuration property that has been deprecated
- class ConfigurationDeprecated < Flipper::Error
- def initialize(message = nil)
- default = "The configuration property has been deprecated"
super(message || default)
end
end
end