This function is a shortcut for throwing an instance of an IllegalStateException class: error("Something went wrong")