Exception could be dealt better than catching it and logging yourself . Look up 
log_exception in application controller.