Exceptions
- interface NrLlmExceptionInterface
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Exception\ Nr Llm Exception Interface
Marker interface implemented by every exception this extension throws on its public API surface — including the
fromArray()normalisation errors ofChatMessage/ToolSpec/ToolCall. Catch this when any nr_llm failure should take the same error path (ADR-053):try { $response = $this->llmManager->chatWithTools($messages, $tools); } catch (NrLlmExceptionInterface $e) { throw new MyDomainException($e->getMessage(), 0, $e); }Copied!
- class ProviderException
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Provider\ Exception\ Provider Exception
Base exception for provider errors.
- class ProviderConfigurationException
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Provider\ Exception\ Provider Configuration Exception
Thrown when a provider is incorrectly configured.
Extends \Netresearch\NrLlm\Provider\Exception\ProviderException
- class ProviderConnectionException
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Provider\ Exception\ Provider Connection Exception
Thrown when a connection to the provider fails.
Extends \Netresearch\NrLlm\Provider\Exception\ProviderException
- class ProviderResponseException
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Provider\ Exception\ Provider Response Exception
Thrown when the provider returns an unexpected or error response.
Extends \Netresearch\NrLlm\Provider\Exception\ProviderException
- class UnsupportedFeatureException
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Provider\ Exception\ Unsupported Feature Exception
Thrown when a requested feature is not supported by the provider.
Extends \Netresearch\NrLlm\Provider\Exception\ProviderException
- class InvalidArgumentException
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Exception\ Invalid Argument Exception
Thrown for invalid method arguments.
- class ConfigurationNotFoundException
-
- Fully qualified name
-
\Netresearch\
Nr Llm\ Exception\ Configuration Not Found Exception
Thrown when a named configuration is not found.
Events
Note
PSR-14 events (BeforeRequestEvent, AfterResponseEvent) are planned
for a future release. The event classes do not exist yet in the current
codebase.