@@ -44,7 +44,7 @@ private function serverInfo(array $servers): array {
4444 'Used ' => Format::bytes ((int ) $ server_info ['bytes ' ]),
4545 'Keys ' => Format::number (count ($ memcached ->getKeys ())),
4646 ];
47- } catch (DashboardException $ e ) {
47+ } catch (DashboardException | MemcachedException $ e ) {
4848 return [
4949 'error ' => $ e ->getMessage (),
5050 ];
@@ -74,7 +74,7 @@ private function deleteAllKeys($memcached): string {
7474 * @param Memcache|Memcached $memcached
7575 *
7676 * @return string
77- * @throws DashboardException
77+ * @throws MemcachedException
7878 */
7979 private function deleteKey ($ memcached ): string {
8080 $ keys = explode (', ' , Http::get ('delete ' ));
@@ -126,7 +126,7 @@ private function moreInfo(array $servers): string {
126126 * @param Memcache|Memcached $memcached
127127 *
128128 * @return array<int, array<string, string|int>>
129- * @throws DashboardException
129+ * @throws MemcachedException
130130 */
131131 private function getAllKeys ($ memcached ): array {
132132 static $ keys = [];
@@ -148,7 +148,7 @@ private function getAllKeys($memcached): array {
148148 * @param Memcache|Memcached $memcached
149149 *
150150 * @return string
151- * @throws DashboardException
151+ * @throws MemcachedException
152152 */
153153 private function mainDashboard ($ memcached ): string {
154154 $ keys = $ this ->getAllKeys ($ memcached );
@@ -174,7 +174,7 @@ private function mainDashboard($memcached): string {
174174 * @param Memcache|Memcached $memcached
175175 *
176176 * @return string
177- * @throws DashboardException
177+ * @throws MemcachedException
178178 */
179179 private function viewKey ($ memcached ): string {
180180 $ key = Http::get ('key ' );
@@ -222,7 +222,7 @@ private function viewKey($memcached): string {
222222 * @param Memcache|Memcached $memcached
223223 *
224224 * @return void
225- * @throws DashboardException
225+ * @throws MemcachedException
226226 */
227227 private function import ($ memcached ): void {
228228 if ($ _FILES ['import ' ]['type ' ] === 'text/plain ' ) {
@@ -244,7 +244,7 @@ private function import($memcached): void {
244244 * @param Memcache|Memcached $memcached
245245 *
246246 * @return string
247- * @throws DashboardException
247+ * @throws MemcachedException
248248 */
249249 private function form ($ memcached ): string {
250250 $ key = Http::get ('key ' );
0 commit comments