---
title: "MediaProviderException Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_MediaProviderException.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# MediaProviderException Class
 
This is a base class for all exception which can be thrown when you are working with format readers or writers.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
<SerializableAttribute> _
Public Class MediaProviderException _Inherits Exception
```
 
```csharp
[SerializableAttribute]
public class MediaProviderException : Exception
```
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - [System.Exception](http://msdn2.microsoft.com/en-us/c18k6c59)
        - [System.ApplicationException](http://msdn2.microsoft.com/en-us/ww58ded5)
            - [Aurigma.GraphicsMill.Exception](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Exception.htm.md)
                - Aurigma.GraphicsMill.Codecs.MediaProviderException
                    - [Aurigma.GraphicsMill.Codecs.MediaUnsupportedException](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_MediaUnsupportedException.htm.md)
                    - [Aurigma.GraphicsMill.Codecs.MediaCorruptedException](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_MediaCorruptedException.htm.md)
                    - [Aurigma.GraphicsMill.Codecs.MultiFrameException](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_MultiFrameException.htm.md)
                    - [Aurigma.GraphicsMill.Codecs.JpegMarkerException](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_JpegMarkerException.htm.md)
   
## See Also

### Reference

- [MediaProviderException Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_Codecs_MediaProviderException.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
