**Inheritance:**
java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, [com.aspose.imaging.coreexceptions.ImageException](../../com.aspose.imaging.coreexceptions/imageexception), [com.aspose.imaging.coreexceptions.imageformats.JpegException](../../com.aspose.imaging.coreexceptions.imageformats/jpegexception)
```
public class JpegLoadException extends JpegException
```

Represents the JPEG image loading exception.
## Constructors

| Constructor | Description |
| --- | --- |
| [JpegLoadException(String message)](#JpegLoadException-java.lang.String-) | Initializes a new instance of the `JpegLoadException` class. |
| [JpegLoadException(String message, Throwable innerException)](#JpegLoadException-java.lang.String-java.lang.Throwable-) | Initializes a new instance of the `JpegLoadException` class. |
| [JpegLoadException(String message, int reason)](#JpegLoadException-java.lang.String-int-) | Initializes a new instance of the `JpegLoadException` class. |
| [JpegLoadException(String message, Throwable innerException, int reason)](#JpegLoadException-java.lang.String-java.lang.Throwable-int-) | Initializes a new instance of the `JpegLoadException` class. |
## Methods

| Method | Description |
| --- | --- |
| [getReason()](#getReason--) | Gets or sets the reason of error. |
| [setReason(int value)](#setReason-int-) | Gets or sets the reason of error. |
### JpegLoadException(String message) {#JpegLoadException-java.lang.String-}
```
public JpegLoadException(String message)
```


Initializes a new instance of the `JpegLoadException` class.

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

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


Initializes a new instance of the `JpegLoadException` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The message. |
| innerException | java.lang.Throwable | The inner exception. |

### JpegLoadException(String message, int reason) {#JpegLoadException-java.lang.String-int-}
```
public JpegLoadException(String message, int reason)
```


Initializes a new instance of the `JpegLoadException` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The exception message. |
| reason | int | The reason of error. |

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


Initializes a new instance of the `JpegLoadException` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The exception message. |
| innerException | java.lang.Throwable | The inner exception. |
| reason | int | The reason of error. |

### getReason() {#getReason--}
```
public int getReason()
```


Gets or sets the reason of error.

Value: The reason of error.

**Returns:**
int
### setReason(int value) {#setReason-int-}
```
public void setReason(int value)
```


Gets or sets the reason of error.

Value: The reason of error.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

