Exception: Applocale::ErrorUtil::CommonError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/applocale/Util/error_util.rb

Instance Method Summary collapse

Instance Method Details

#raiseObject



7
8
9
10
# File 'lib/applocale/Util/error_util.rb', line 7

def raise
  puts "** Error: #{self.message}".red
  abort('')
end

#to_warnObject



12
13
14
# File 'lib/applocale/Util/error_util.rb', line 12

def to_warn
  puts "** Warning: #{self.message}".yellow
end