Completed
Branch FET/rest-relation-endpoints (02db8d)
by
unknown
27:05 queued 18:22
created

RestPasswordIncorrectException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace EventEspresso\core\exceptions;
4
5
use EventEspresso\core\libraries\rest_api\RestException;
6
7
/**
8
 * Class RestPasswordIncorrectException
9
 *
10
 * Exception thrown by the REST API when the password supplied was incorrect.
11
 *
12
 * @package     Event Espresso
13
 * @author         Mike Nelson
14
 * @since         4.9.74.p
15
 *
16
 */
17
class RestPasswordIncorrectException extends RestException
18
{
19
    public function __construct($previous = null)
20
    {
21
        parent::__construct(
22
            'rest_post_incorrect_password',
23
            esc_html__('Incorrect password.', 'event_espresso'),
24
            array(
25
                'status' => 403,
26
            ),
27
            $previous
28
        );
29
    }
30
}
31
// End of file RestPasswordIncorrectException.php
32
// Location: EventEspresso\core\exceptions/RestPasswordIncorrectException.php
33