Exception: UsefullTable::CustomError
- Inherits:
-
StandardError
- Object
- StandardError
- UsefullTable::CustomError
- Defined in:
- lib/usefull_table/exceptions.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(*args) ⇒ CustomError
constructor
A new instance of CustomError.
- #message ⇒ Object
Constructor Details
#initialize(*args) ⇒ CustomError
Returns a new instance of CustomError.
4 5 6 7 |
# File 'lib/usefull_table/exceptions.rb', line 4 def initialize(*args) @options = args. super end |
Instance Method Details
#message ⇒ Object
9 10 11 12 13 |
# File 'lib/usefull_table/exceptions.rb', line 9 def @options.merge!({:default => "Error : #{@options.inspect}"}) #I18n.t("#{self.class.name.gsub(/::/,'.')}", :default => "Error : #{@options.inspect}", @options) I18n.t("#{self.class.name.gsub(/::/,'.')}", @options ) end |