conforming to non-existent coding conventions with try-catch block