Relative Content

Tag Archive for exceptions

Return magic value, throw exception or return false on failure?

I sometimes end up having to write a method or property for a class library for which it is not exceptional to have no real answer, but a failure. Something cannot be determined, is not available, not found, not currently possible or there is no more data available.

Generic way of handling exceptions in windows phone? [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago. I mean what are some of the ways […]

Designing exceptions for conversion failures

Suppose there are some methods to convert from “X” to “Y” and vice versa; the conversion may fail in some cases, and exceptions are used to signal conversion errors in those cases.