From 216412f26a6ac618c7c2a91d5c40e443ea9ca93c Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 7 Dec 2017 21:50:21 +0100 Subject: [PATCH] upd: error.core.{Error,Err} (Added management for Err::AlreadyExists) --- build/error/core/Error.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/error/core/Error.php b/build/error/core/Error.php index 2cd3aa4..9d2d2d0 100755 --- a/build/error/core/Error.php +++ b/build/error/core/Error.php @@ -88,6 +88,7 @@ case Err::UnknownTemplate: return $this->UnknownTemplate(); break; case Err::UnknownAddress: return $this->UnknownAddress(); break; case Err::UnknownError: return $this->UnknownError(); break; + case Err::AlreadyExists: return $this->AlreadyExists(); break; default: return $this->UnknownDebugError(); break; } @@ -179,6 +180,8 @@ return 'unknown'; }private function UnknownError(){ return 'unknown error'; + }private function AlreadyExists(){ + return 'item already exists'; }private function UnknownDebugError(){ return 'unknown debug error'; }