## PubException class

Represents errors that occur during PUB application execution.

```csharp
public class PubException : ApplicationException
```

## Constructors

| Name | Description |
| --- | --- |
| [PubException](pubexception/#constructor)(string) | Initializes a new instance of the `PubException` class. |
| [PubException](pubexception/#constructor_1)(string, Exception) | Initializes a new instance of the `PubException` class with a specified error message and a reference to the inner exception that is the cause of this exception. |

## Properties

| Name | Description |
| --- | --- |
| override [Message](../../aspose.pub.exceptions/pubexception/message/) { get; } | Gets a message that describes the current exception. |
| override [StackTrace](../../aspose.pub.exceptions/pubexception/stacktrace/) { get; } | Gets a string representation of the immediate frames on the call stack. |

### See Also

* namespace [Aspose.Pub.Exceptions](../../aspose.pub.exceptions/)
* assembly [Aspose.PUB](../../)


