Which is prefer in what case in the conception of reuse predefined exception classes?
For example I was parsing a document using XmlReader and faced with inconsistent close tag. What to throw?
It should be noted that this two exceptions do not inherit one another so should catch separately.
Tiada ulasan:
Catat Ulasan