Class IllegalArgumentExceptions


  • final class IllegalArgumentExceptions
    extends java.lang.Object
    Shorthands creating IllegalArgumentException instances using formatted strings.
    Since:
    1.3
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private IllegalArgumentExceptions()
      No need to build instances.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.IllegalArgumentException format​(java.lang.String format, java.lang.Object... args)
      Creates an IllegalArgumentException with a message formatted with String.format(String,Object...).
      (package private) static java.lang.IllegalArgumentException format​(java.lang.Throwable t, java.lang.String format, java.lang.Object... args)
      Creates an IllegalArgumentException with a message formatted with String.format(String,Object...).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IllegalArgumentExceptions

        private IllegalArgumentExceptions()
        No need to build instances.
    • Method Detail

      • format

        static java.lang.IllegalArgumentException format​(java.lang.String format,
                                                         java.lang.Object... args)
        Creates an IllegalArgumentException with a message formatted with String.format(String,Object...).
        Parameters:
        format - See String.format(String,Object...)
        args - See String.format(String,Object...)
        Returns:
        an IllegalArgumentException with a message formatted with String.format(String,Object...)
      • format

        static java.lang.IllegalArgumentException format​(java.lang.Throwable t,
                                                         java.lang.String format,
                                                         java.lang.Object... args)
        Creates an IllegalArgumentException with a message formatted with String.format(String,Object...).
        Parameters:
        t - the throwable cause
        format - See String.format(String,Object...)
        args - See String.format(String,Object...)
        Returns:
        an IllegalArgumentException with a message formatted with String.format(String,Object...)