# LibraryException Class

> Exception thrown when there is an error processing a Library call.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/LibraryException
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class LibraryException : RuntimeException
```

**Namespace:** `com::datalogics::PDFL`

**Inherits from:** `RuntimeException`

## Description

Exception thrown when there is an error processing a Library call.

## Constructors

### LibraryException

```java
com.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.

## Methods

### getAdditionalInfo

```java
String com.datalogics.PDFL.LibraryException.getAdditionalInfo()
```

**Returns:** `String`

A string containing additional information about the exception.

Retrieve additional information about the exception.

### getErrorCode

```java
int com.datalogics.PDFL.LibraryException.getErrorCode()
```

**Returns:** `int`

The error code for this exception.

Retrieve the internal PDF Library error code.

### getObjectName

```java
String com.datalogics.PDFL.LibraryException.getObjectName()
```

**Returns:** `String`

The name of the object.

Retrieve the name of the object that caused the exception.
