throw an exception
Java
When an exceptional circumstance arises in a program - often as a result of a logical error, and exception object is created and thrown. If the exception is not caught by an exception handler, the program will terminate with a runtime error.