Module: Blend::Exceptions

Defined in:
lib/blend/exceptions.rb

Defined Under Namespace

Classes: AlreadyLoggedIn, AlreadyLoggedOut, AuthenticationFailure, HipchatAuthenticationFailure, LoginAuthenticationFailure

Class Method Summary collapse

Class Method Details

.formatted(e) ⇒ Object



10
11
12
13
# File 'lib/blend/exceptions.rb', line 10

def formatted(e)
  puts "#{e.backtrace.shift}: #{e.message}"
  puts e.backtrace.first(10).map{|x| "\t"+x}.join("\n")
end