public class FormattedIllegalArgumentException extends IllegalArgumentException
Constructor and Description |
---|
FormattedIllegalArgumentException(String message,
Object... args)
Constructor.
|
FormattedIllegalArgumentException(Throwable causedBy,
String message,
Object... args)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
assertArgsOnlyOfType(MethodInfo m,
Class<?>... args)
Throws a
FormattedIllegalArgumentException if the specified method does not only contain args of the specified types. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FormattedIllegalArgumentException(String message, Object... args)
message
- The MessageFormat
-style message.args
- Optional MessageFormat
-style arguments.public FormattedIllegalArgumentException(Throwable causedBy, String message, Object... args)
causedBy
- The cause of this exception.message
- The MessageFormat
-style message.args
- Optional MessageFormat
-style arguments.public static void assertArgsOnlyOfType(MethodInfo m, Class<?>... args)
FormattedIllegalArgumentException
if the specified method does not only contain args of the specified types.m
- The method to check.args
- The allowed args.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.