Exception

An exception is an anomalous or failure event that may require special handling.

Python Example

Additional information on Python exceptions can be found here: https://docs.python.org/3/library/exceptions.html

# Set some initial conditions.
number = float(34)/float(67)
  
# Test for an exception when attempting executing a function.
try:
    x = int(number)
  
# Handle exceptions that might occur.
except ValueError:
    print("No valid number provided.")