Ejemplo n.º 1
0
 /**
  * Serializes a build an catches the exceptions
  *
  * @param Xinc_Build_Interface $build
  *
  * @return void
  */
 protected function serializeBuild(Xinc_Build_Interface $build)
 {
     try {
         $build->serialize();
     } catch (Xinc_Build_Exception_NotRun $e1) {
         $build->error('Build cannot be serialized, it did not run.');
     } catch (Xinc_Build_Exception_Serialization $e2) {
         $build->error('Build could not be serialized properly.');
     } catch (Xinc_Build_History_Exception_Storage $e3) {
         $build->error('Build history could not be stored.');
     } catch (Exception $e4) {
         $build->error('Unknown error occured while serializing the build.');
     }
 }