public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'message', 'type' => TType::STRING), 2 => array('var' => 'errorCode', 'type' => TType::I32), 3 => array('var' => 'SQLState', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['message'])) {
             $this->message = $vals['message'];
         }
         if (isset($vals['errorCode'])) {
             $this->errorCode = $vals['errorCode'];
         }
         if (isset($vals['SQLState'])) {
             $this->SQLState = $vals['SQLState'];
         }
     }
 }
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'message', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['message'])) {
             $this->message = $vals['message'];
         }
     }
 }