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
fromnormalisation errors ofArray () Chat/Message Tool/Spec Tool. Catch this when any nr_llm failure should take the same error path (ADR-053):Call 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.
-
class
ConfigurationInactiveException -
- Fully qualified name
-
\Netresearch\Nr Llm\ Exception\ Configuration Inactive Exception
Thrown when a named configuration exists but is deactivated (ADR-070).
Only
Configurationdifferentiates inactive from not-found; the user-awareResolver:: get Active By Identifier () Llmsignals the inactive case asConfiguration Service Interface:: get Configuration () Configuration(codeNot Found Exception 2690936773).
Events
Note
PSR-14 events (Before, After) are planned
for a future release. The event classes do not exist yet in the current
codebase.