title: How to check constructor arguments and throw an exception or make an assertion in a default constructor in Scala?
body: <p>I would like to check constructor arguments and refuse to construct throwing <code>IllegalArgumentException</code> in case the arguments set is not valid (the values don't fit in expected constraints). How to code this in Scala?</p>