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:
- Serializable
public class UnsupportedFormatException
- extends IOException
An exception used to indicate that the specified format could not be
used in an operation.
- Author:
- coobird
- See Also:
- Serialized Form
Field Summary |
static String |
UNKNOWN
A constant which is used to indicate an unknown format. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
UNKNOWN
public static final String UNKNOWN
- A constant which is used to indicate an unknown format.
- See Also:
- Constant Field Values
UnsupportedFormatException
public UnsupportedFormatException(String formatName)
- Instantiates a
UnsupportedFormatException
with the unsupported
format.
- Parameters:
formatName
- Format name.
UnsupportedFormatException
public UnsupportedFormatException(String formatName,
String s)
- Instantiates a
UnsupportedFormatException
with the unsupported
format and a detailed message.
- Parameters:
formatName
- Format name.s
- A message detailing the exception.
getFormatName
public String getFormatName()
- Returns the format name which is not supported.
- Returns:
- Format name.
Copyright © 2014. All rights reserved.