Package java.util

Class DuplicateFormatFlagsException

All Implemented Interfaces:
Serializable

public class DuplicateFormatFlagsException
extends IllegalFormatException
The unchecked exception will be thrown out if there are duplicate flags given out in the format specifier.
See Also:
RuntimeException, Serialized Form
  • Constructor Details

    • DuplicateFormatFlagsException

      public DuplicateFormatFlagsException​(String f)
      Constructs a new DuplicateFormatFlagsException with the flags containing duplicates.
      Parameters:
      f - the format flags that contain a duplicate flag.
  • Method Details

    • getFlags

      public String getFlags()
      Returns the format flags that contain a duplicate flag.
      Returns:
      the format flags that contain a duplicate flag.
    • 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