diff options
author | 2018-01-03 14:12:02 +0200 | |
---|---|---|
committer | 2018-01-03 14:12:02 +0200 | |
commit | 941fcf7048f9f36d68e9af23a01a924be811d0c1 (patch) | |
tree | 5c2fcea5b0090f2895e38cd184a54e421b49695c | |
parent | 8e2c9d229720d3f6fd6e764f5a801c8bbe82a201 (diff) |
Add policy exceptions
Change-Id: I45831be64bef097b683b400f7e8b654b8ef9b2df
Signed-off-by: ReemMahmoud <rfawzy.ext@orange.com>
-rw-r--r-- | python_moonutilities/python_moonutilities/exceptions.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/python_moonutilities/python_moonutilities/exceptions.py b/python_moonutilities/python_moonutilities/exceptions.py index f14d6abf..1abb5aa7 100644 --- a/python_moonutilities/python_moonutilities/exceptions.py +++ b/python_moonutilities/python_moonutilities/exceptions.py @@ -534,3 +534,18 @@ class PdpExisting(MoonError): code = 409 title = 'Pdp Error' logger = "Error" + + +class PolicyUnknown(MoonError): + description = _("The policy is unknown.") + code = 400 + title = 'Policy Unknown' + logger = "Error" + + +class PolicyExisting(MoonError): + description = _("The policy already exists.") + code = 409 + title = 'Policy Error' + logger = "Error" + |