# LibraryException Class

> Class LibraryException.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/LibraryException
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class LibraryException : ApplicationException
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `ApplicationException`

## Constructors

### LibraryException

```csharp
Datalogics.PDFL.LibraryException.LibraryException(string message, int errorCode, string objectName, string additionalInfo)
```

*constructor*

**Parameters**

- `message` (`string`): The detail message.
- `errorCode` (`int`): The PDF Library error code.
- `objectName` (`string`): The name of the object (i.e. a filename for a file) that caused the error.
- `additionalInfo` (`string`): A string containing additional information about the object.

Exception thrown when there is an error processing a library call

## Properties

### AdditionalInfo

```csharp
string Datalogics.PDFL.LibraryException.AdditionalInfo { get; }
```

Additional information about the exception.

### ErrorCode

```csharp
int Datalogics.PDFL.LibraryException.ErrorCode { get; }
```

The internal PDF Library error code.

### ObjectName

```csharp
string Datalogics.PDFL.LibraryException.ObjectName { get; }
```

The name of the object that caused the exception.
