From 26d4e91b53f3b24c7f2b93fb522d455076012e0c Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 9 May 2012 02:42:24 +0200 Subject: [PATCH] Fixed exception handling --- frontend/classes/class.container.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/classes/class.container.php b/frontend/classes/class.container.php index cf06ab3..662097d 100644 --- a/frontend/classes/class.container.php +++ b/frontend/classes/class.container.php @@ -394,9 +394,13 @@ class Container extends CPHPDatabaseRecordClass { throw new ContainerReinstallException("Reinstalling container failed during destroying: " . $e->getMessage(), $e->getCode(), $this->sInternalId); } - catch (ContainerDeployException $e) + catch (ContainerCreateException $e) { - throw new ContainerReinstallException("Reinstalling container failed during deploying: " . $e->getMessage(), $e->getCode(), $this->sInternalId); + throw new ContainerReinstallException("Reinstalling container failed during creation: " . $e->getMessage(), $e->getCode(), $this->sInternalId); + } + catch (ContainerConfigureException $e) + { + throw new ContainerReinstallException("Reinstalling container failed during configuration: " . $e->getMessage(), $e->getCode(), $this->sInternalId); } }