oxconnectionexception.php

Go to the documentation of this file.
00001 <?php
00002 
00010 class oxConnectionException extends oxException
00011 {
00012 
00018     private $_sAddress;
00019 
00025     private $_sConnectionError;
00026 
00032     public function setAdress($sAdress)
00033     {
00034         $this->_sAddress = $sAdress;
00035     }
00036 
00042     public function getAdress()
00043     {
00044         return $this->_sAddress;
00045     }
00046 
00052     public function setConnectionError($sConnError)
00053     {
00054         $this->_sConnectionError = $sConnError;
00055     }
00056 
00062     public function getConnectionError()
00063     {
00064         return $this->_sConnectionError;
00065     }
00066 
00073     public function getString()
00074     {
00075         return __CLASS__ . '-' . parent::getString() . " Connection Adress --> " . $this->_sAddress . "\n" . "Connection Error --> " . $this->_sConnectionError;
00076     }
00077 
00083     public function getValues()
00084     {
00085         $aRes = parent::getValues();
00086         $aRes['adress'] = $this->getAdress();
00087         $aRes['connectionError'] = $this->getConnectionError();
00088 
00089         return $aRes;
00090     }
00091 }