100 lines
2.2 KiB
C#
100 lines
2.2 KiB
C#
using System;
|
|
|
|
namespace Umbraco.Core.Media.Exif
|
|
{
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when the format of the image file
|
|
/// could not be understood.
|
|
/// </summary>
|
|
internal class NotValidImageFileException : Exception
|
|
{
|
|
public NotValidImageFileException()
|
|
: base("Not a valid image file.")
|
|
{
|
|
;
|
|
}
|
|
|
|
public NotValidImageFileException(string message)
|
|
: base(message)
|
|
{
|
|
;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when the format of the JPEG file
|
|
/// could not be understood.
|
|
/// </summary>
|
|
internal class NotValidJPEGFileException : Exception
|
|
{
|
|
public NotValidJPEGFileException()
|
|
: base("Not a valid JPEG file.")
|
|
{
|
|
;
|
|
}
|
|
|
|
public NotValidJPEGFileException(string message)
|
|
: base(message)
|
|
{
|
|
;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when the format of the TIFF file
|
|
/// could not be understood.
|
|
/// </summary>
|
|
internal class NotValidTIFFileException : Exception
|
|
{
|
|
public NotValidTIFFileException()
|
|
: base("Not a valid TIFF file.")
|
|
{
|
|
;
|
|
}
|
|
|
|
public NotValidTIFFileException(string message)
|
|
: base(message)
|
|
{
|
|
;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when the format of the TIFF header
|
|
/// could not be understood.
|
|
/// </summary>
|
|
internal class NotValidTIFFHeader : Exception
|
|
{
|
|
public NotValidTIFFHeader()
|
|
: base("Not a valid TIFF header.")
|
|
{
|
|
;
|
|
}
|
|
|
|
public NotValidTIFFHeader(string message)
|
|
: base(message)
|
|
{
|
|
;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when the length of a section exceeds 64 kB.
|
|
/// </summary>
|
|
internal class SectionExceeds64KBException : Exception
|
|
{
|
|
public SectionExceeds64KBException()
|
|
: base("Section length exceeds 64 kB.")
|
|
{
|
|
;
|
|
}
|
|
|
|
public SectionExceeds64KBException(string message)
|
|
: base(message)
|
|
{
|
|
;
|
|
}
|
|
}
|
|
}
|