Exception: Applocale::ErrorUtil::CommonError
- Inherits:
-
StandardError
- Object
- StandardError
- Applocale::ErrorUtil::CommonError
show all
- Defined in:
- lib/applocale/Util/error_util.rb
Instance Method Summary
collapse
Instance Method Details
#raise ⇒ Object
7
8
9
10
|
# File 'lib/applocale/Util/error_util.rb', line 7
def raise
puts "** Error: #{self.message}".red
abort('')
end
|
#to_warn ⇒ Object
12
13
14
|
# File 'lib/applocale/Util/error_util.rb', line 12
def to_warn
puts "** Warning: #{self.message}".yellow
end
|