Exceptions
-
interface
NrLlmExceptionInterface -
- Fully qualified name
-
\Netresearch\Nr Llm\ Exception\ Nr Llm Exception Interface
Marker interface implemented by errors generated by this extension on its public API surface — including the
fromnormalisation errors ofArray () Chat/Message Tool/Spec Tool. Catch this when an nr_llm-defined 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!This includes agent request validation, specialized service failures, delegated credential validation and internally generated runtime or configuration errors. Native parent catches remain compatible. Exceptions originating in a consumer callback or an external dependency are not automatically converted; PHP engine errors such as
Typeare also outside this marker contract. For example, the bundled streaming adapters propagate their original PSR-18 network exception without an adapter retry loop. Callers can handleError Psr\separately; see Streaming support for the fallback boundary.Http\ Client\ Network Exception Interface Tool-loop approval and input suspensions carry resumable state. Handle
ToolandApproval Required Exception Toolbefore a common marker catch when using the tool loop directly, so the suspension can be persisted and resumed.Input Required Exception
-
class
RuntimeException -
- Fully qualified name
-
\Netresearch\Nr Llm\ Exception\ Runtime Exception
An internally generated runtime failure. Extends PHP's
\Runtimeand implementsException Nr.Llm Exception Interface
-
class
LogicException -
- Fully qualified name
-
\Netresearch\Nr Llm\ Exception\ Logic Exception
An internally generated logic or configuration error. Extends PHP's
\Logicand implementsException Nr.Llm Exception Interface
-
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).
Planned request events
Note
PSR-14 events (Before, After) are planned
for a future release. The event classes do not exist yet in the current
codebase.
The existing editorial write event is documented in Events.