**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 for PUB format
## Constructors

| Constructor | Description |
| --- | --- |
| [PubFormatException(String message)](#PubFormatException-java.lang.String-) | Initializes a new instance of the [PubFormatException](../../com.aspose.pub.exceptions/pubformatexception) class. |
| [PubFormatException(String message, Throwable innerException)](#PubFormatException-java.lang.String-java.lang.Throwable-) | Initializes a new instance of the [PubFormatException](../../com.aspose.pub.exceptions/pubformatexception) class with a specified error message and a reference to the inner exception that is the cause of this 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)
```


Initializes a new instance of the [PubFormatException](../../com.aspose.pub.exceptions/pubformatexception) class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The message. |

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


Initializes a new instance of the [PubFormatException](../../com.aspose.pub.exceptions/pubformatexception) class with a specified error message and a reference to the inner exception that is the cause of this exception.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The error message that explains the reason for the exception. |
| innerException | java.lang.Throwable | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |

### 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:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String |  |
| innerException | java.lang.Throwable |  |
| separator | java.lang.String |  |

