How to handle an invalid value in a setter?
<p>I always hear people who say setters and getters should be fast and <a href="https://stackoverflow.com/a/1488488/1925272">not throw exceptions</a>.</p>

<p>Now, if it is true, how should I handle an invalid value passed to a setter, if not throwing an exception?</p>