javax.media.format
Class UnsupportedFormatException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.media.MediaException
                    |
                    +--javax.media.format.UnsupportedFormatException
All Implemented Interfaces:
java.io.Serializable

public class UnsupportedFormatException
extends MediaException

An UnsupportedFormatException is thrown when a format change request fails because the requested Format is not supported.

See Also:
Serialized Form

Field Summary
(package private)  Format failedFormat
           
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
UnsupportedFormatException(Format unsupportedFormat)
          Constructs a new UnsupportedFormatException.
UnsupportedFormatException(java.lang.String message, Format unsupportedFormat)
          Constructs a new UnsupportedFormatException with the specified parameters.
 
Method Summary
 Format getFailedFormat()
          Gets the unsupported Format reported by this exception.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

failedFormat

Format failedFormat
Constructor Detail

UnsupportedFormatException

public UnsupportedFormatException(Format unsupportedFormat)
Constructs a new UnsupportedFormatException.

Parameters:
unsupportedFormat - The Format that is not supported.

UnsupportedFormatException

public UnsupportedFormatException(java.lang.String message,
                                  Format unsupportedFormat)
Constructs a new UnsupportedFormatException with the specified parameters.

Parameters:
message - A String that contains a message associated with the exception.
unsupportedFormat - The Format that is not supported.
Method Detail

getFailedFormat

public Format getFailedFormat()
Gets the unsupported Format reported by this exception.

Returns:
The unsupported Format.