public class InvalidImageFormatException extends RuntimeException
The exception that is thrown when trying to open, load, save or process somehow else some content, that presumably is an image (raster or vector), but actually is an image of unexpected type or not an image at all.
Constructor and Description |
---|
InvalidImageFormatException(String message)
Creates new instance of InvalidImageFormatException with specified error message
|
InvalidImageFormatException(String message,
RuntimeException innerException)
Creates new instance of InvalidImageFormatException with specified error message and a reference to the inner exception that is the cause of this exception
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidImageFormatException(String message)
Creates new instance of InvalidImageFormatException with specified error message
message
- Textual message, that describes the error, can be null or emptypublic InvalidImageFormatException(String message, RuntimeException innerException)
Creates new instance of InvalidImageFormatException with specified error message and a reference to the inner exception that is the cause of this exception
message
- Textual message, that describes the error, can be null or emptyinnerException
- The exception that is the cause of the current exception, or a null reference if no inner exception is specified.