Package java.util

Class MissingFormatArgumentException

All Implemented Interfaces:
Serializable

public class MissingFormatArgumentException
extends IllegalFormatException
A MissingFormatArgumentException will be thrown if there is no corresponding argument with the specified conversion or an argument index that refers to a missing argument.
See Also:
RuntimeException, Serialized Form
  • Constructor Details

    • MissingFormatArgumentException

      public MissingFormatArgumentException​(String s)
      Constructs a new MissingFormatArgumentException with the specified conversion that lacks the argument.
      Parameters:
      s - the specified conversion that lacks the argument.
  • Method Details

    • getFormatSpecifier

      public String getFormatSpecifier()
      Returns the conversion associated with the exception.
      Returns:
      the conversion associated with the exception.
    • 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