This module contains all exceptions raised by OdooRPC when an error occurred.
Base class for exception.
Exception raised for errors occurring during an internal operation.
Exception raised for errors related to RPC queries. Error details (like the Odoo server traceback) are available through the info attribute:
>>> from pprint import pprint as pp
>>> try:
... odoo.execute('res.users', 'wrong_method')
... except odoorpc.error.RPCError as exc:
... pp(exc.info)
...
{'code': 200,
'data': {'arguments': ["'res.users' object has no attribute 'wrong_method'"],
'debug': 'Traceback (most recent call last):\n File ...',
'message': "'res.users' object has no attribute 'wrong_method'",
'name': 'exceptions.AttributeError'}
'message': 'OpenERP Server Error'}