PHP Classes

File: src/Generics/Socket/SocketException.php

Recommend this page to a friend!
  Classes of Maik Greubel   PHP Generics   src/Generics/Socket/SocketException.php   Download  
File: src/Generics/Socket/SocketException.php
Role: Class source
Content type: text/plain
Description: Derived Exception
Class: PHP Generics
Framework for accessing streams, sockets and logs
Author: By
Last change: Update of src/Generics/Socket/SocketException.php
Date: 2 months ago
Size: 1,000 bytes
 

Contents

Class file image Download
<?php

/**
 * This file is part of the PHP Generics package.
 *
 * @package Generics
 */
namespace Generics\Socket;

use
Generics\GenericsException;
use
Exception;

/**
 * Derived exception
 *
 * Will be thrown whenever socket has an exceptional state
 *
 * @author Maik Greubel <greubel@nkey.de>
 */
class SocketException extends GenericsException
{

   
/**
     * Create a new SocketException
     *
     * @param string $message
     * The message to throw; May contain placeholder like {placeholder} and will be replaced by context
     * elements
     * @param array $context
     * The context elements to replace in message
     * @param number $code
     * Optional code
     * @param Exception $previous
     * Optional previous exception
     */
   
public function __construct($message, array $context = array(), $code = 0, Exception $previous = null)
    {
       
parent::__construct($message, $context, $code, $previous);
    }
}