From a9a30d7237826e5a7f95951a3ffb7977611e5908 Mon Sep 17 00:00:00 2001 From: yuri Date: Wed, 14 Aug 2019 13:09:22 +0300 Subject: [PATCH] duplicate silent confict exception --- .../Espo/Core/Exceptions/ConflictSilent.php | 35 +++++++++++++++++++ application/Espo/Services/Record.php | 3 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 application/Espo/Core/Exceptions/ConflictSilent.php diff --git a/application/Espo/Core/Exceptions/ConflictSilent.php b/application/Espo/Core/Exceptions/ConflictSilent.php new file mode 100644 index 0000000000..45b21195df --- /dev/null +++ b/application/Espo/Core/Exceptions/ConflictSilent.php @@ -0,0 +1,35 @@ + 'Duplicate', 'data' => $data ]; - throw new Conflict(json_encode($reason)); + throw new ConflictSilent(json_encode($reason)); } } }