Package net.coobird.thumbnailator.tasks
Class UnsupportedFormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- net.coobird.thumbnailator.tasks.UnsupportedFormatException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnsupportedFormatException extends java.io.IOExceptionAn exception used to indicate that the specified format could not be used in an operation.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringformatNameThe format name which was not supported.private static longserialVersionUIDAn ID used for serialization.static java.lang.StringUNKNOWNA constant which is used to indicate an unknown format.
-
Constructor Summary
Constructors Constructor Description UnsupportedFormatException(java.lang.String formatName)Instantiates aUnsupportedFormatExceptionwith the unsupported format.UnsupportedFormatException(java.lang.String formatName, java.lang.String s)Instantiates aUnsupportedFormatExceptionwith the unsupported format and a detailed message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFormatName()Returns the format name which is not supported.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
An ID used for serialization.- See Also:
- Constant Field Values
-
formatName
private final java.lang.String formatName
The format name which was not supported.
-
UNKNOWN
public static final java.lang.String UNKNOWN
A constant which is used to indicate an unknown format.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UnsupportedFormatException
public UnsupportedFormatException(java.lang.String formatName)
Instantiates aUnsupportedFormatExceptionwith the unsupported format.- Parameters:
formatName- Format name.
-
UnsupportedFormatException
public UnsupportedFormatException(java.lang.String formatName, java.lang.String s)Instantiates aUnsupportedFormatExceptionwith the unsupported format and a detailed message.- Parameters:
formatName- Format name.s- A message detailing the exception.
-
-