Package java.util

Class IllegalFormatWidthException

All Implemented Interfaces:
Serializable

public class IllegalFormatWidthException
extends IllegalFormatException
An IllegalFormatWidthException will be thrown if the width is a negative value other than -1 or in other cases where a width is not supported.
See Also:
RuntimeException, Serialized Form
  • Constructor Details

    • IllegalFormatWidthException

      public IllegalFormatWidthException​(int w)
      Constructs a new IllegalFormatWidthException with specified width.
      Parameters:
      w - the width.
  • Method Details

    • getWidth

      public int getWidth()
      Returns the width associated with the exception.
      Returns:
      the width.
    • getMessage

      public String getMessage()
      Description copied from class: Throwable
      Returns the detail message which was provided when this Throwable was created. Returns null if no message was provided at creation time.
      Overrides:
      getMessage in class Throwable