Something went wrong. Try again.
Parse and validate AT Protocol Lexicons with DTO generation for Laravel
Something went wrong. Try again.
980 B · 39 lines
PHP
at dev
12345678910111213141516171819202122232425262728293031323334353637383940<?php
namespace SocialDept\AtpSchema\Exceptions;
class TypeResolutionException extends SchemaException{ /** * Create exception for unknown type. */ public static function unknownType(string $type): self { return static::withContext( "Unknown Lexicon type: {$type}", ['type' => $type] ); }
/** * Create exception for unresolvable reference. */ public static function unresolvableReference(string $ref, string $nsid): self { return static::withContext( "Cannot resolve reference {$ref} in schema {$nsid}", ['ref' => $ref, 'nsid' => $nsid] ); }
/** * Create exception for circular reference. */ public static function circularReference(string $ref, array $chain): self { return static::withContext( "Circular reference detected: {$ref}", ['ref' => $ref, 'chain' => $chain] ); }}