Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
ClientRequestException
0.00% covered (danger)
0.00%
0 / 6
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 / 5
0.00% covered (danger)
0.00%
0 / 1
2
 getStatusCode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2namespace Apie\Core\Exceptions;
3
4use Throwable;
5
6/**
7 * Something went wrong with the client request, but it was not clear how it could be mapped.
8 */
9final class ClientRequestException extends ApieException implements HttpStatusCodeException
10{
11    public function __construct(Throwable $previous)
12    {
13        parent::__construct(
14            'Unknown client request error: ' . $previous->getMessage(),
15            0,
16            $previous
17        );
18    }
19
20    public function getStatusCode(): int
21    {
22        return 400;
23    }
24}