RasterFormatException (Java SE 23 & JDK 23)
Description: declaration: module: java.desktop, package: java.awt.image, class: RasterFormatException
Keywords: java.awt.image.RasterFormatException class

# Class RasterFormatException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.awt.image.RasterFormatException

All Implemented Interfaces:
  `Serializable`

public class RasterFormatException extends RuntimeException
The `RasterFormatException` is thrown if there is invalid layout information in the `Raster`.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RasterFormatException(String s)`
  Constructs a new `RasterFormatException` with the specified message.

- ## Method Summary

  ### Methods declared in class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods declared in class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### RasterFormatException

    public RasterFormatException(String s)
    Constructs a new `RasterFormatException` with the specified message.
    Parameters:
      `s` - the message to generate when a `RasterFormatException` is thrown