Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1
- catch (Exception ex) {
- if (condition) {
- return 1;
- } else {
- if (ex instanceof ConcreteException1) {
- return 2;
- } else {
- return 3;
- }
- 2
- catch (Exception ex) {
- if (condition) {
- return 1;
- } else {
- try {
- throw ex;
- } catch (ConcreteException1 e) {
- return 2;
- } catch (Exception e) {
- return 3;
- }
Advertisement
Add Comment
Please, Sign In to add comment