---
title: "JavascriptExtensionsException"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf.exceptions/javascriptextensionsexception/"
product: "Aspose.PDF for Java API Reference"
description: "The exception that is thrown on errors when working with JavascriptExtensions."
---

**Inheritance:**
java.lang.Object, java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.aspose.ms.System.Exception com.aspose.ms.System.ApplicationException com.aspose.pdf.exceptions.PdfException com.aspose.pdf.exceptions.JavascriptExtensionsException, java.lang.Throwable, java.lang.Exception java.lang.RuntimeException com.aspose.ms.System.Exception com.aspose.ms.System.ApplicationException com.aspose.pdf.exceptions.PdfException com.aspose.pdf.exceptions.JavascriptExtensionsException, java.lang.Exception, java.lang.RuntimeException com.aspose.ms.System.Exception com.aspose.ms.System.ApplicationException com.aspose.pdf.exceptions.PdfException com.aspose.pdf.exceptions.JavascriptExtensionsException, java.lang.RuntimeException, com.aspose.ms.System.Exception com.aspose.ms.System.ApplicationException com.aspose.pdf.exceptions.PdfException com.aspose.pdf.exceptions.JavascriptExtensionsException, com.aspose.ms.System.Exception, com.aspose.ms.System.ApplicationException com.aspose.pdf.exceptions.PdfException com.aspose.pdf.exceptions.JavascriptExtensionsException, com.aspose.ms.System.ApplicationException, com.aspose.pdf.exceptions.PdfException com.aspose.pdf.exceptions.JavascriptExtensionsException, com.aspose.pdf.exceptions.PdfException, com.aspose.pdf.exceptions.JavascriptExtensionsException

**All Implemented Interfaces:**
Serializable

```
public class JavascriptExtensionsException extends PdfException
```

The exception that is thrown on errors when working with JavascriptExtensions.

## Constructors

| Constructor | Description |
| --- | --- |
| [JavascriptExtensionsException](#JavascriptExtensionsException-java.lang.RuntimeException-) | Initializes a new instance of the JavascriptExtensionsException class with a reference to the inner exception that is the cause of this exception. |
| [JavascriptExtensionsException](#JavascriptExtensionsException-java.lang.String-) | Initializes a new instance of the {@link JavascriptExtensionsException} class. |
| [JavascriptExtensionsException](#JavascriptExtensionsException-java.lang.String-java.lang.RuntimeException-) | Initializes a new instance of the JavascriptExtensionsException class with a specified error message and a reference to the inner exception that is the cause of this exception. |

### JavascriptExtensionsException {#JavascriptExtensionsException-java.lang.RuntimeException-}
Initializes a new instance of the JavascriptExtensionsException class with a reference to the inner exception that is the cause of this exception.

### JavascriptExtensionsException {#JavascriptExtensionsException-java.lang.String-}
Initializes a new instance of the {@link JavascriptExtensionsException} class.

### JavascriptExtensionsException {#JavascriptExtensionsException-java.lang.String-java.lang.RuntimeException-}
Initializes a new instance of the JavascriptExtensionsException class with a specified error message and a reference to the inner exception that is the cause of this exception.
