for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Async sockets
*
* @copyright Copyright (c) 2015-2017, Efimov Evgenij <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace AsyncSockets\Exception;
use AsyncSockets\Frame\FramePickerInterface;
use AsyncSockets\Socket\SocketInterface;
* Class FrameException
class FrameException extends NetworkSocketException
{
* Failed FramePicker
* @var FramePickerInterface
private $picker;
* Construct the exception.
* @param FramePickerInterface $picker Corrupted framePicker
* @param SocketInterface $socket Socket object
* @param string $message The Exception message to throw.
* @param int $code The Exception code.
* @param \Exception $previous The previous exception used for the exception chaining.
public function __construct(
FramePickerInterface $picker,
SocketInterface $socket,
$message = '',
$code = 0,
\Exception $previous = null
) {
parent::__construct($socket, $message, $code, $previous);
$this->picker = $picker;
}
* Return corrupted framePicker
* @return FramePickerInterface
public function getFramePicker()
return $this->picker;