Switch place for try catch block