net.coobird.thumbnailator.tasks
Class UnsupportedFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by 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.
 
Constructor Summary
UnsupportedFormatException(String formatName)
          Instantiates a UnsupportedFormatException with the unsupported format.
UnsupportedFormatException(String formatName, String s)
          Instantiates a UnsupportedFormatException with the unsupported format and a detailed message.
 
Method Summary
 String getFormatName()
          Returns the format name which is not supported.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final String UNKNOWN
A constant which is used to indicate an unknown format.

See Also:
Constant Field Values
Constructor Detail

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.
Method Detail

getFormatName

public String getFormatName()
Returns the format name which is not supported.

Returns:
Format name.


Copyright © 2014. All rights reserved.