Skip to content

CLGEException [clge]

Richel Bilderbeek edited this page Feb 17, 2018 · 2 revisions

CLGEException(message)

[source]

The CLGEExceptions class is a custom Exception class

Init

[RJCB: remove]

from clge import CLGEException

raise CLGEException("Example Exception")

Functions

[RJCB: remove]

There are no functions

Exmaple

[RJCB: No need to show an example how to trigger an exception :-) ]

This:

from clge import CLGEException

raise CLGEException("Example Exception") 
print("No exception")

Will end the program with this output:

Example Exception