oxconnectionexception.php

Go to the documentation of this file.
00001 <?php
00002 
00010 class oxConnectionException extends oxException
00011 {
00017     private $_sAddress;
00018 
00024     private $_sConnectionError;
00025 
00033     public function setAdress($sAdress)
00034     {
00035         $this->_sAddress = $sAdress;
00036     }
00037 
00043     public function getAdress()
00044     {
00045         return $this->_sAddress;
00046     }
00047 
00055     public function setConnectionError( $sConnError )
00056     {
00057         $this->_sConnectionError = $sConnError;
00058     }
00059 
00065     public function getConnectionError()
00066     {
00067         return $this->_sConnectionError;
00068     }
00069 
00076     public function getString()
00077     {
00078         return __CLASS__ .'-'.parent::getString()." Connection Adress --> ".$this->_sAddress."\n". "Connection Error --> ". $this->_sConnectionError;
00079     }
00080 
00086     public function getValues()
00087     {
00088         $aRes = parent::getValues();
00089         $aRes['adress'] = $this->getAdress();
00090         $aRes['connectionError'] = $this->getConnectionError();
00091         return $aRes;
00092     }
00093 }