Exception: Parse::MFA::DependencyError

Inherits:
Error
  • Object
show all
Defined in:
lib/parse/two_factor_auth.rb

Overview

Error raised when required gem is not available

Instance Attribute Summary

Attributes inherited from Error

#code

Instance Method Summary collapse

Constructor Details

#initialize(gem_name) ⇒ DependencyError

Returns a new instance of DependencyError.



81
82
83
# File 'lib/parse/two_factor_auth.rb', line 81

def initialize(gem_name)
  super("The '#{gem_name}' gem is required for this feature. Add to Gemfile: gem '#{gem_name}'")
end