Need documentation of python API class zoautil_py.exceptions #21
Replies: 5 comments 5 replies
-
I have created a complete code sample for testing but with
When executed on my system, I receive a In digging into |
Beta Was this translation helpful? Give feedback.
-
job_response is a zoautil_py.types.Job object. |
Beta Was this translation helpful? Give feedback.
-
Hi Peter, Think all ZOAU exceptions inherit from Exception. You can find file exceptions.py in a python subfolder /site-packages/zouautil_py : `class ZOAUException(Exception): class DatasetVerificationError(Exception): class JobSubmitException(Exception): class JobPurgeException(Exception): Is your jcl_dataset a file residing in a folder or a MVS (partitioned) dataset? Regards, Richard |
Beta Was this translation helpful? Give feedback.
-
Having done a fairly quick pass over the code I think the reason exception For your particular issue @pjfarleyiii I believe the error results because the job is taking longer than the code is waiting, you can change that behavior to wait longer by using timeout Optionally, if you really want to see the error since its getting lost in the exceptions implementation you can use the raw version of job submit like so (example of a good job submit):
Example of a failure using raw submit:
The python docs will be getting much needed attention, they currently are very slim. I will note the issues I discovered here to be worked on in the near future. |
Beta Was this translation helpful? Give feedback.
-
I have captured this internally in JIRA NAZARE-8834 and it will be reviewed, thank you. |
Beta Was this translation helpful? Give feedback.
-
While performing challenges on the IBM zXplore student website, we have found that using the python API and the zoau jobs.submit function with "wait=True", the function generates the exception zoautil_py.exceptions.JobSubmitException. This can be caught in a python try/except, but the only information about the exception that can be printed without some detailed documentation is the class name, as in:
Example result printed:
Regardless of the error, the job is actually submitted and executed successfully, but no intelligent handling of the exception is possible without documentation of the exception class(es).
Please fully document the python API exception classes.
Peter Farley
Brooklyn, NY
P.S. - No, I do not have S&S support, since I am encountering the error on the zXplore system.
[Edit] In a reply below it is shown that the exceptions as currently defined have no attributes other than the base class Exception has. It would be very helpful if the specific exceptions had attributes that describe the error in enough detail to analyze the problem and resolve it.
Beta Was this translation helpful? Give feedback.
All reactions