public class ComponentException
extends org.apache.commons.lang.UnhandledException
| Constructor and Description |
|---|
ComponentException(BaseComponent component,
String message,
Object... args) |
ComponentException(Class<? extends BaseComponent> componentClass,
String message,
Object... args) |
ComponentException(String message,
Object... args) |
ComponentException(Throwable cause,
BaseComponent component,
String message,
Object... args) |
ComponentException(Throwable cause,
Class<? extends BaseComponent> componentClass,
String message,
Object... args) |
ComponentException(Throwable cause,
String message,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertTrue(boolean condition,
BaseComponent component,
String message,
Object... args)
Asserts that a condition is true, throwing a ComponentException if it is not.
|
static void |
assertTrue(boolean condition,
BaseComponent component,
Supplier<String> message)
Asserts that a condition is true, throwing a ComponentException if it is not.
|
static void |
assertTrue(boolean condition,
Class<? extends BaseComponent> componentClass,
String message,
Object... args)
Asserts that a condition is true, throwing a ComponentException if it is not.
|
static void |
assertTrue(boolean condition,
Class<? extends BaseComponent> componentClass,
Supplier<String> message)
Asserts that a condition is true, throwing a ComponentException if it is not.
|
static void |
assertTrue(boolean condition,
String message,
Object... args)
Asserts that a condition is true, throwing a ComponentException if it is not.
|
static void |
assertTrue(boolean condition,
Supplier<String> message)
Asserts that a condition is true, throwing a ComponentException if it is not.
|
BaseComponent |
getComponent()
Returns the component instance that caused the exception.
|
Class<? extends BaseComponent> |
getComponentClass()
Returns the class of the component that caused the exception.
|
String |
getMessage()
Override default behavior and simply prepend this exception's message to that of its
superclass.
|
getCause, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTraceaddSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic ComponentException(Throwable cause, Class<? extends BaseComponent> componentClass, String message, Object... args)
public ComponentException(Throwable cause, BaseComponent component, String message, Object... args)
public ComponentException(Class<? extends BaseComponent> componentClass, String message, Object... args)
public ComponentException(BaseComponent component, String message, Object... args)
public static void assertTrue(boolean condition,
Supplier<String> message)
condition - Condition to test.message - The exception message.ComponentException - Thrown if the condition is not met.public static void assertTrue(boolean condition,
Class<? extends BaseComponent> componentClass,
Supplier<String> message)
condition - Condition to test.componentClass - Class of the component that caused the exception. May be null.message - The exception message.ComponentException - Thrown if the condition is not met.public static void assertTrue(boolean condition,
BaseComponent component,
Supplier<String> message)
condition - Condition to test.component - Component instance that caused the exception. May be null.message - The exception message.ComponentException - Thrown if the condition is not met.public static void assertTrue(boolean condition,
String message,
Object... args)
condition - Condition to test.message - The exception message.args - Optional message parametersComponentException - Thrown if the condition is not met.public static void assertTrue(boolean condition,
Class<? extends BaseComponent> componentClass,
String message,
Object... args)
condition - Condition to test.componentClass - Class of the component that caused the exception. May be null.message - The exception message.args - Optional message parametersComponentException - Thrown if the condition is not met.public static void assertTrue(boolean condition,
BaseComponent component,
String message,
Object... args)
condition - Condition to test.component - Component instance that caused the exception. May be null.message - The exception message.args - Optional message parametersComponentException - Thrown if the condition is not met.public BaseComponent getComponent()
public Class<? extends BaseComponent> getComponentClass()
public String getMessage()
getMessage in interface org.apache.commons.lang.exception.NestablegetMessage in class org.apache.commons.lang.exception.NestableRuntimeExceptionCopyright © 2018 Fujion Framework. All rights reserved.