Exception: ActsAsXls::CustomError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/acts_as_xls/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ CustomError

Returns a new instance of CustomError.



3
4
5
6
# File 'lib/acts_as_xls/exceptions.rb', line 3

def initialize(*args)
    @options = args.extract_options!
    super
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/acts_as_xls/exceptions.rb', line 8

def message
  I18n.t("#{self.class.name.gsub(/::/,'.')}", @options)
end