Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| SearchProfileException | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace CirrusSearch\Profile; |
| 4 | |
| 5 | /** |
| 6 | * Error occurring while managing search profiles. |
| 7 | * May occur when attempting to load an invalid profile or because |
| 8 | * the underlying profile repository is broken. |
| 9 | * (It's likely a programming error that needs to be fixed.) |
| 10 | */ |
| 11 | class SearchProfileException extends \RuntimeException { |
| 12 | |
| 13 | /** |
| 14 | * @param string $message |
| 15 | * @param \Exception|null $cause |
| 16 | */ |
| 17 | public function __construct( $message, ?\Exception $cause = null ) { |
| 18 | // flip $cause and $cause because it's most of our usecases |
| 19 | // we have a cause but no particular error code. |
| 20 | parent::__construct( $message, 0, $cause ); |
| 21 | } |
| 22 | } |