Throwing Exceptions to Report an Error During Object’s Construction
Many implementations still do not support exception handling very well. Therefore, you can implement, using global variables and passing a parameter to the constructor, instead. However, on implementations that support