WebSocketException::printStack()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
nc 1
nop 0
dl 0
loc 4
c 1
b 0
f 0
cc 1
rs 10
1
<?php
2
3
namespace EasyHttp\Exceptions;
4
5
/**
6
 * WebSocketException class
7
 *
8
 * @link    https://github.com/shahradelahi/easy-http
9
 * @author  Shahrad Elahi (https://github.com/shahradelahi)
10
 * @license https://github.com/shahradelahi/easy-http/blob/master/LICENSE (MIT License)
11
 */
12
class WebSocketException extends \Exception
13
{
14
15
	public function printStack()
16
	{
17
		echo $this->getFile() . ' ' . $this->getLine() . ' ' . $this->getMessage() . PHP_EOL;
18
		echo $this->getTraceAsString();
19
	}
20
21
}
22