java exception handling nested methods -
is design catch exceptions in method enclosed methods catch exception? example, in following code public method calls 2 private methods. private methods catch exception , print it: /*the thing method call enclosed methods.*/ public object enclosingmethod() { try { enclosedmethod1(); enclosedmethod2(); } catch (exception e) { e.printstacktrace(); } } private object enclosedmethod1() { try { //some logic } catch (exception e) { e.printstacktrace(); } } private object enclosedmethod2() { try { //some logic } catch (exception e) { e.printstacktrace(); } } no, not design. , in case wrong, because surround calls of enclosedmethod1 , enclosedmethod2 in catch block, don't throw exception in these blocks, because exceptions cought! especially not catch mother of exceptions, java.lang.exception . but dependes. ask question: supposed happe...