Guest User

Untitled

a guest
Jul 17th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. try {
  2. foo();
  3. } catch (Exception e) {
  4. // handle <-- разумеется, тут реальная обработка, а не подавление исключений
  5. }
  6.  
  7. try {
  8. foo();
  9. } catch (FileNotFound exception) {
  10. return new FileNotFoundResult()
  11. }
  12. catch(Exception ex){
  13. logger.Log(ex.Message)
  14. }
Add Comment
Please, Sign In to add comment