Exception: UsefullAttachment::CustomError
- Inherits:
-
StandardError
- Object
- StandardError
- UsefullAttachment::CustomError
- Defined in:
- lib/usefull_attachment/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.
5 6 7 8 |
# File 'lib/usefull_attachment/exceptions.rb', line 5 def initialize(*args) @options = args. super end |
Instance Method Details
#message ⇒ Object
10 11 12 13 |
# File 'lib/usefull_attachment/exceptions.rb', line 10 def @options.merge!({:default => "Error : #{@options.inspect}"}) I18n.t("#{self.class.name.gsub(/::/,'.')}", @options ) end |