netcmd: domain: add model exceptions and error handling
commitca4e36d17a8392c6228b791b41024cf1b1db0c93
authorRob van der Linde <rob@catalyst.net.nz>
Fri, 23 Jun 2023 00:24:24 +0000 (23 12:24 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 25 Jun 2023 23:29:32 +0000 (25 23:29 +0000)
tree7696702c4f023e3e4cfd112ec840f740c8a04239
parentb00761da1d1777943f7ab4ef99dda0866f408053
netcmd: domain: add model exceptions and error handling

* Only handle what we know, otherwise raise the existing LdbError
* Cutom messages added in the model layer so we don't have to do it in
  the commands themselves

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
python/samba/netcmd/domain/models/auth_silo.py
python/samba/netcmd/domain/models/exceptions.py
python/samba/netcmd/domain/models/model.py