public final class Exceptions extends Object
| Modifier and Type | Method and Description |
|---|---|
static AgentConfigurationException |
agentConfiguration(String format,
Object... args)
Creates an
AgentConfigurationException with a formatted message. |
static AgentConfigurationException |
agentConfiguration(Throwable cause,
String format,
Object... args)
Creates an
AgentConfigurationException with a cause and a formatted message. |
static AgentRuntimeException |
agentRuntime(String format,
Object... args)
Creates an
AgentRuntimeException with a formatted message. |
static AgentRuntimeException |
agentRuntime(Throwable cause,
String format,
Object... args)
Creates an
AgentRuntimeException with a cause and a formatted message. |
static IllegalArgumentException |
illegalArgument(String format,
Object... args)
Creates an
IllegalArgumentException with a formatted message. |
static IllegalArgumentException |
illegalArgument(Throwable cause,
String format,
Object... args)
Creates an
IllegalArgumentException with a cause and a formatted message. |
static IllegalStateException |
illegalState(String format,
Object... args)
Creates an
IllegalStateException with a formatted message. |
static IllegalStateException |
illegalState(Throwable cause,
String format,
Object... args)
Creates an
IllegalStateException with a cause and a formatted message. |
static InvalidClassException |
invalidClass(String format,
Object... args)
Creates a
InvalidClassException with a formatted message. |
static InvalidClassException |
invalidClass(Throwable cause,
String format,
Object... args)
Creates a
InvalidClassException with a cause and a formatted message. |
public static IllegalArgumentException illegalArgument(String format, Object... args)
IllegalArgumentException with a formatted message.format - See String.format(String, Object...)args - See String.format(String, Object...)IllegalArgumentException with a formatted messagepublic static IllegalArgumentException illegalArgument(Throwable cause, String format, Object... args)
IllegalArgumentException with a cause and a formatted message.cause - the cause to be setformat - See String.format(String, Object...)args - See String.format(String, Object...)IllegalArgumentException with given cause a formatted messagepublic static IllegalStateException illegalState(String format, Object... args)
IllegalStateException with a formatted message.format - See String.format(String, Object...)args - See String.format(String, Object...)IllegalStateException with a formatted messagepublic static IllegalStateException illegalState(Throwable cause, String format, Object... args)
IllegalStateException with a cause and a formatted message.cause - the cause to be setformat - See String.format(String, Object...)args - See String.format(String, Object...)IllegalStateException with given cause and formatted messagepublic static InvalidClassException invalidClass(String format, Object... args)
InvalidClassException with a formatted message.format - See String.format(String, Object...)args - See String.format(String, Object...)InvalidClassException with a formatted messagepublic static InvalidClassException invalidClass(Throwable cause, String format, Object... args)
InvalidClassException with a cause and a formatted message.cause - the cause to be setformat - See String.format(String, Object...)args - See String.format(String, Object...)InvalidClassException with given cause and formatted messagepublic static AgentConfigurationException agentConfiguration(String format, Object... args)
AgentConfigurationException with a formatted message.format - See String.format(String, Object...)args - See String.format(String, Object...)AgentConfigurationException with a formatted messagepublic static AgentConfigurationException agentConfiguration(Throwable cause, String format, Object... args)
AgentConfigurationException with a cause and a formatted message.cause - the cause to be setformat - See String.format(String, Object...)args - See String.format(String, Object...)AgentConfigurationException with given cause and formatted messagepublic static AgentRuntimeException agentRuntime(String format, Object... args)
AgentRuntimeException with a formatted message.format - See String.format(String, Object...)args - See String.format(String, Object...)AgentRuntimeException with a formatted messagepublic static AgentRuntimeException agentRuntime(Throwable cause, String format, Object... args)
AgentRuntimeException with a cause and a formatted message.cause - the cause to be setformat - See String.format(String, Object...)args - See String.format(String, Object...)AgentRuntimeException with given cause and formatted messageCopyright © 2022. All rights reserved.