public function testGetPrevious()
 {
     if (version_compare(PHP_VERSION, '5.3.0') < 0) {
         $this->markTestSkipped();
     }
     $e1 = new FooException('real cause');
     $e = new PropelException('this is an error', $e1);
     $this->assertEquals($e1, $e->getPrevious());
 }
 /**
  * @param string A string error message for the Exception itself; this error won't be part of the WFErrorCollection
  * @param object Exception The previous/wraped exception.
  * @see http://api.propelorm.org/1.6.0/runtime/propel-runtime-exception/PropelException.html
  */
 public function __construct($p1, $p2 = NULL)
 {
     parent::__construct($p1, $p2);
     $this->errors = new WFErrorArray();
 }