def reject(self, emsg="", ecode=255): """ reject([msg]) Terminates hook execution and instructs PBS to not perform the associated event request action. If [msg] argument is given, it will be shown in the appropriate PBS daemon log, and the STDERR of the PBS command that caused this event to take place. If [ecode] argument is given, if will be used as the value for the SystemExit exception, else a value of 255 is used. This terminates hook execution by throwing a SystemExit exception. """ _event_reject(emsg) _event_param_mod_disallow() raise SystemExit, str(ecode)