Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
InvalidParameterException
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getErrorCodeList
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Flow\Exception;
4
5/**
6 * Exception for missing or invalid parameters to method calls, when not traced directly to
7 * user input.
8 *
9 * This deliberately does not extend InvalidInputException, and must be loggable
10 */
11class InvalidParameterException extends FlowException {
12    public function __construct( $message ) {
13        parent::__construct( $message, 'invalid-parameter' );
14    }
15
16    protected function getErrorCodeList() {
17        // flow-error-invalid-parameter
18        return [ 'invalid-parameter' ];
19    }
20}