Signals that a method has been invoked at an illegal or
inappropriate time. In other words, the Java environment or
Java application is not in an appropriate state for the requested
operation.
version: 1.8, 12/04/99 since: JDK1.1
Constructs an IllegalStateException with the specified detail
message. A detail message is a String that describes this particular
exception.
Parameters: s - the String that contains a detailed message