
**Summary:** Represents the JPEG image loading exception.

**Module:** [aspose.psd.coreexceptions.imageformats](/psd/python-net/aspose.psd.coreexceptions.imageformats/)

**Full Name:** aspose.psd.coreexceptions.imageformats.JpegLoadException

**Inheritance:** JpegException

**Aspose.PSD Version:** 24.12.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [JpegLoadException(message)](#JpegLoadException_message_1) | Initializes a new instance of the [JpegLoadException](/psd/python-net/aspose.psd.coreexceptions.imageformats/jpegloadexception/) class. |
| [JpegLoadException(message, reason)](#JpegLoadException_message_reason_2) | Initializes a new instance of the [JpegLoadException](/psd/python-net/aspose.psd.coreexceptions.imageformats/jpegloadexception/) class. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| reason | JpegLoadException.ErrorReason | r/w | Gets or sets the reason of error. |


### Constructor: JpegLoadException(message) {#JpegLoadException_message_1}


```
 JpegLoadException(message) 
```

Initializes a new instance of the [JpegLoadException](/psd/python-net/aspose.psd.coreexceptions.imageformats/jpegloadexception/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| message | string | The exception message. |

### Constructor: JpegLoadException(message, reason) {#JpegLoadException_message_reason_2}


```
 JpegLoadException(message, reason) 
```

Initializes a new instance of the [JpegLoadException](/psd/python-net/aspose.psd.coreexceptions.imageformats/jpegloadexception/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| message | string | The exception message. |
| reason | JpegLoadException.ErrorReason | The reason of error. |

