diff options
Diffstat (limited to 'vendor/opentracing/opentracing/src/OpenTracing/UnsupportedFormatException.php')
-rw-r--r-- | vendor/opentracing/opentracing/src/OpenTracing/UnsupportedFormatException.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/opentracing/opentracing/src/OpenTracing/UnsupportedFormatException.php b/vendor/opentracing/opentracing/src/OpenTracing/UnsupportedFormatException.php new file mode 100644 index 000000000..dd4ef56a3 --- /dev/null +++ b/vendor/opentracing/opentracing/src/OpenTracing/UnsupportedFormatException.php @@ -0,0 +1,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)); + } +} |