Is it correct to say that the exception mechanism in Java is "chain of responsibility"?
from the one hand, as far as I understand, for every exception that we have in Java, we "run over" the "catch blocks" and check which one is responsible for to handle it, which is look like "chain of responsibility"
but in the other hand, since "catch blocks" are not object, and chain of responsibility is talking about "processing objects".
so what am I missing here?
Aucun commentaire:
Enregistrer un commentaire