Class UnsupportedFormatException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnsupportedFormatException
    extends java.io.IOException
    An 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.String formatName
      The format name which was not supported.
      private static long serialVersionUID
      An ID used for serialization.
      static java.lang.String UNKNOWN
      A constant which is used to indicate an unknown format.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFormatName()
      Returns the format name which is not supported.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 a UnsupportedFormatException with the unsupported format.
        Parameters:
        formatName - Format name.
      • UnsupportedFormatException

        public UnsupportedFormatException​(java.lang.String formatName,
                                          java.lang.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 java.lang.String getFormatName()
        Returns the format name which is not supported.
        Returns:
        Format name.