---
title: "JpegMarkerException Constructor (String, Exception)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Codecs_JpegMarkerException_ctor_2_232e81dd.htm
product: "Graphics Mill"
---

# JpegMarkerException Constructor (String, Exception)
 
Initializes a new instance of the [JpegMarkerException](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_JpegMarkerException.htm.md) class with a specified error message and a reference to the inner exception that is the cause of this exception.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public JpegMarkerException(string message,Exception innerException
)
```
 
### Parameters
 
 - message
     - Type: System.String
The message that describes the error.

 - innerException
     - Type: System.Exception
The exception that is the cause of the current exception, or a null reference if no inner exception is specified.
   
## See Also

### Reference

- [JpegMarkerException Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_JpegMarkerException.htm.md)
- [JpegMarkerException Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Codecs_JpegMarkerException_ctor.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
