| 1 | <?php  | 
            ||
| 19 | class TransferException extends NetworkSocketException  | 
            ||
| 20 | { | 
            ||
| 21 | /**  | 
            ||
| 22 | * Exception with incoming data  | 
            ||
| 23 | */  | 
            ||
| 24 | const DIRECTION_RECV = 0;  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * Exception with outgoing data  | 
            ||
| 28 | */  | 
            ||
| 29 | const DIRECTION_SEND = 1;  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * Transfer direction  | 
            ||
| 33 | *  | 
            ||
| 34 | * @var int  | 
            ||
| 35 | */  | 
            ||
| 36 | private $direction;  | 
            ||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * @inheritDoc  | 
            ||
| 40 | */  | 
            ||
| 41 | 11 | public function __construct(  | 
            |
| 51 | |||
| 52 | /**  | 
            ||
| 53 | * Return direction of this exception  | 
            ||
| 54 | *  | 
            ||
| 55 | * @return int  | 
            ||
| 56 | */  | 
            ||
| 57 | public function getDirection()  | 
            ||
| 61 | }  | 
            ||
| 62 |