# using Assert statements

# assert False, "it's an error message, duh"

# just like exception 
# Example below: 

RGBColors = ['ed', 'green', 'blue']

assert 'red' in RGBColors, 'Red not found? WAT?'