RequestException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 23
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Cassava\Exception;
4
5
/**
6
 * CAS request exception.
7
 *
8
 * @since 1.1.0
9
 */
10
class RequestException extends GeneralException {
11
12
	/**
13
	 * Invalid Request Error
14
	 */
15
	const ERROR_INVALID_REQUEST = 'INVALID_REQUEST';
16
17
	/**
18
	 * Invalid Service Error
19
	 */
20
	const ERROR_INVALID_SERVICE = 'INVALID_SERVICE';
21
22
	/**
23
	 * Generates a new ticket exception.
24
	 *
25
	 * @param string $message Exception description.
26
	 * @param string $casCode CAS error code (default: "INVALID_REQUEST").
27
	 */
28
	public function __construct( $message = '', $casCode = self::ERROR_INVALID_REQUEST ) {
29
		parent::__construct( $message, $casCode );
30
	}
31
32
}
33