Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class myexception1
  2. {
  3. public:
  4. myexception1()
  5. {};
  6. }
  7.  
  8. class myexception2
  9. {
  10. public:
  11. myexception2()
  12. {
  13. throw myexception1();
  14. };
  15. }
  16.  
  17. function test()
  18. {
  19. try
  20. {
  21. throw myexception2();
  22. }
  23. catch (...)
  24. {
  25. }
  26. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement