Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
WrongStockTypeException
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
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
1<?php
2
3namespace Domain\StockIO\Exceptions;
4
5use Symfony\Component\HttpKernel\Exception\HttpException;
6
7class WrongStockTypeException extends HttpException
8{
9
10    public function __construct(string $message = 'Wrong input/output type', \Throwable $previous = null, array $headers = [], int $code = 0)
11    {
12        parent::__construct(400, __($message), $previous, $headers, $code);
13    }
14}