Thrown when a method is invoked at an illegal or inappropriate time.
Creates a new error.
an explanation of what went wrong
Thrown when a method is invoked at an illegal or inappropriate time.