From 1552c09636725f8f31561fbe29e55abdfc01bcc4 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'; }