blob: dd4ef56a3d91e53fa4f40ba53f465ad40018fa4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
declare(strict_types=1);
namespace OpenTracing;
use UnexpectedValueException;
/**
* Thrown when trying to inject or extract in an invalid format
*/
final class UnsupportedFormatException extends UnexpectedValueException
{
/**
* @param string $format
* @return UnsupportedFormatException
*/
public static function forFormat(string $format): UnsupportedFormatException
{
return new self(sprintf('The format "%s" is not supported.', $format));
}
}
|