Added a constructor with an error message
Javadoc and error message