Example #1
0
 /**
  * Constructor for Socket connection
  *
  * @param string $message Description of what has gone wrong
  * @param string $code Error Code
  * @param \Exception $previous Previous Exception
  */
 public function __construct($message, $code = 0, Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
Example #2
0
 public function testConstruct()
 {
     $this->assertEquals('My Error Message', $this->object->getMessage());
 }