com.novell.zos.jdl
Class ExecError

java.lang.Object
  extended by com.novell.zos.jdl.ExecError

public class ExecError
extends java.lang.Object

ExecError is raised for errors in executing a command line using the Exec class or system(). Normal raising of this error causes the Joblet to fail. Put this Error in an try except block to handle the error.

Example to handle an ExecError:

      class MyJoblet(Joblet):
          def joblet_started_event(self):
              try:
                  e = Exec()
                  e.setCommand("ls -la")
                  e.execute()
              except ExecError:
                  print "ls failed. but okay to continue"
 


Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Copyright (c) 2011 Novell, Inc. All rights reserved.