wrapped difference component
there impression difference component where member throws component-specific exception. example, information opening classes pitch dataaccessexception
.
in style, i mostly myself carrying locate rethrow member specific exception, since called methods delcared throws exception
:
try {
int foo = foo();
(foo != expectedvalue) {
pitch new componentexception("bad outcome foo(): " + foo);
}
bar();
}
catch (componentexception e) {
pitch e;
}
catch (exception e) {
pitch new componentexception(e);
}
do yourself doing same? ugly?
this doubt outcome style, nonetheless something within constraints style.
Comments
Post a Comment