blob: 3402a24ae362141523f1f6b2af9c79863fff9c3b [file] [log] [blame]
<?php
/**
* File containing the ezcSearchNetworkException class
*
* @package Search
* @version //autogentag//
* @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Exception thrown when a network connection to a search backends gets
* disconnected permaturely.
*
* @package Search
* @version //autogentag//
*/
class ezcSearchNetworkException extends ezcSearchException
{
/**
* Contains the raw HTTP body of the network error, if available
*
* @var string
*/
public $rawBody;
/**
* Constructs an ezcSearchNetworkException
*
* @param string $message
* @param mixed $rawBody
*/
public function __construct( $message, $rawBody = null )
{
$this->rawBody = $rawBody;
$message = "A network issue occurred: $message";
parent::__construct( $message );
}
}
?>