Hi

I get the following error:
xmlrpclib.Fault: <Fault 1: "cobbler.cexceptions.CX:'invalid profile name: rhel5u5-x86_64'">

I am still learning python so wanted to know is all errors always going to be the exception type 
xmlrpclib.Fault when using xmlrpc to interact with cobbler?

Secondly having grepped through the source code I found:
cobbler/item_system.py:        raise CX(_("invalid profile name: %s") % profile_name)

reason I did this was to get a list of possible error messages that I could expect. Would doing a 
grep 'raise CX' cobbler/item_system.py 
be a to simplistic approach to find these possible error messages?

To try and answer my own question... maybe because it is xmlrpc and remote you will only get this generic error and if you were in the code (local) you get different exception classes... is there any point in recreating a list of exception classes to handle errors on the client side of the xmlrpc interface. Reason I ask is I am thinking that it might be cleaner to use the try except blocks rather than a bunch of if statements for strings but I am very open to opinions/guidance.

Regards

--
Gerhardus Geldenhuis