---
title: "PubFormatException"
url: "https://reference.aspose.com/pub/fr/java/com.aspose.pub.exceptions/pubformatexception/"
product: "Référence API d'Aspose.PUB pour Java"
description: "Exception pour le format PUB"
---

**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.pub.exceptions.PubException](../../com.aspose.pub.exceptions/pubexception)
```
public final class PubFormatException extends PubException
```

Exception pour le format PUB
## Constructeurs

| Constructor | Description |
| --- | --- |
| [PubFormatException(String message)](#PubFormatException-java.lang.String-) | Initialise une nouvelle instance de la classe [PubFormatException](../../com.aspose.pub.exceptions/pubformatexception). |
| [PubFormatException(String message, Throwable innerException)](#PubFormatException-java.lang.String-java.lang.Throwable-) | Initialise une nouvelle instance de la classe [PubFormatException](../../com.aspose.pub.exceptions/pubformatexception) avec un message d'erreur spécifié et une référence à l'exception interne qui est la cause de cette exception. |
| [PubFormatException(String message, Throwable innerException, String separator)](#PubFormatException-java.lang.String-java.lang.Throwable-java.lang.String-) |  |
### PubFormatException(String message) {#PubFormatException-java.lang.String-}
```
public PubFormatException(String message)
```


Initialise une nouvelle instance de la classe [PubFormatException](../../com.aspose.pub.exceptions/pubformatexception).

**Parameters:**
| Paramètre | Type | Description |
| --- | --- | --- |
| message | java.lang.String | Le message. |

### PubFormatException(String message, Throwable innerException) {#PubFormatException-java.lang.String-java.lang.Throwable-}
```
public PubFormatException(String message, Throwable innerException)
```


Initialise une nouvelle instance de la classe [PubFormatException](../../com.aspose.pub.exceptions/pubformatexception) avec un message d'erreur spécifié et une référence à l'exception interne qui est la cause de cette exception.

**Parameters:**
| Paramètre | Type | Description |
| --- | --- | --- |
| message | java.lang.String | Le message d'erreur qui explique la raison de l'exception. |
| innerException | java.lang.Throwable | L'exception qui est la cause de l'exception actuelle, ou une référence nulle (Nothing en Visual Basic) si aucune exception interne n'est spécifiée. |

### PubFormatException(String message, Throwable innerException, String separator) {#PubFormatException-java.lang.String-java.lang.Throwable-java.lang.String-}
```
public PubFormatException(String message, Throwable innerException, String separator)
```


**Parameters:**
| Paramètre | Type | Description |
| --- | --- | --- |
| message | java.lang.String |  |
| innerException | java.lang.Throwable |  |
| séparateur | java.lang.String |  |

