diff options
Diffstat (limited to 'vendor/bakame/http-structured-fields/src/MissingFeature.php')
-rw-r--r-- | vendor/bakame/http-structured-fields/src/MissingFeature.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/bakame/http-structured-fields/src/MissingFeature.php b/vendor/bakame/http-structured-fields/src/MissingFeature.php new file mode 100644 index 000000000..03bd8c05f --- /dev/null +++ b/vendor/bakame/http-structured-fields/src/MissingFeature.php @@ -0,0 +1,13 @@ +<?php + +declare(strict_types=1); + +namespace Bakame\Http\StructuredFields; + +final class MissingFeature extends SyntaxError +{ + public static function dueToLackOfSupport(Type $type, Ietf $rfc): self + { + return new self('The \''.$type->value.'\' type is not handled by '.strtoupper($rfc->name)); + } +} |