Exception: Stove::Error::StoveError
- Inherits:
-
StandardError
- Object
- StandardError
- Stove::Error::StoveError
- Defined in:
- lib/stove/error.rb
Direct Known Subclasses
GitFailed, MetadataNotFound, ServerUnavailable, ValidationFailed
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ StoveError
constructor
A new instance of StoveError.
Constructor Details
#initialize(options = {}) ⇒ StoveError
Returns a new instance of StoveError.
4 5 6 7 8 9 10 11 |
# File 'lib/stove/error.rb', line 4 def initialize( = {}) return super([:_message]) if [:_message] class_name = self.class.to_s.split('::').last error_key = Util.underscore(class_name) super I18n.t("stove.errors.#{error_key}", ) end |