upd: error.core.{Error,Err} (Added management for Err::AlreadyExists)

This commit is contained in:
xdrm-brackets 2017-12-07 21:50:21 +01:00
parent cb5482950f
commit 216412f26a
1 changed files with 3 additions and 0 deletions

View File

@ -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';
}