This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/csharp/exceptions/nutrient-exception.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. NutrientException

NutrientException is the error type used by the Nutrient .NET SDK for failed native operations. It derives from System.Exception.

using Nutrient;
try
{
using Document document = Document.Open("input.pdf");
}
catch (NutrientException error)
{
Console.WriteLine($"{error.Code}: {error.Message}");
}

Properties

PropertyTypeDescription
CodeintNative error code.
ErrorTypestringName of the native error type.
MessagestringError message, including the code.