10.6.25. Class cerebro.events.EventError

class cerebro.events.EventError(code, text)[source]

The event error class.

It has two attributes:
  • code (int) - error code
  • text (string) - error text

It is input into the “error_event” function of the “event” module.

def error_event(error, event):  
        print(error)
        print(error.code)
        print(error.text)