Message objects
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| private static enum | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Collection |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Object | |
| public static final String | |
| pack-priv static Object | |
| pack-priv static Object | |
| public static Message | |
| public static Message | |
| public static Message | create(ErrorId
The enum id for the error errorId, Throwable The exception that caused the error cause, List<Object> The binding sources for the source stack sources, String Format string messageFormat, Object... format string arguments arguments)Creates a new Message with the given cause and a binding source stack. |
| public static final String | |
| public static String | |
| public static String | formatMessages(String heading, Collection<Message> errorMessages)
Returns the formatted message for an exception with the specified messages. |
| private static final String | |
| public static Throwable | getOnlyCause(Collection<Message> messages)
Returns the cause throwable if there is exactly one cause in |
| pack-priv static Message | mergeSources(List<Object> sources, Message message)
Prepends the list of sources to the given |
| public static final String | |
| public static final String |
| converters | back to summary |
|---|---|
private static final Collection<Messages.
| |
| Messages | back to summary |
|---|---|
| private Messages() | |
| appendModules | back to summary |
|---|---|
| private static Object appendModules(Object source, ElementSource elementSource) | |
| bold | back to summary |
|---|---|
| public static final String bold(String text) | |
| convert | back to summary |
|---|---|
| pack-priv static Object convert(Object o) Formats an object in a user friendly way. | |
| convert | back to summary |
|---|---|
| pack-priv static Object convert(Object o, ElementSource source) | |
| create | back to summary |
|---|---|
| public static Message create(ErrorId errorId, String messageFormat, Object... arguments) Creates a new Message without a cause. | |
| create | back to summary |
|---|---|
| public static Message create(ErrorId errorId, Throwable cause, String messageFormat, Object... arguments) Creates a new Message with the given cause. | |
| create | back to summary |
|---|---|
| public static Message create(ErrorId errorId, Throwable cause, List<Object> sources, String messageFormat, Object... arguments) Creates a new Message with the given cause and a binding source stack. | |
| faint | back to summary |
|---|---|
| public static final String faint(String text) | |
| format | back to summary |
|---|---|
| public static String format(String messageFormat, Object... arguments) Calls | |
| formatMessages | back to summary |
|---|---|
| public static String formatMessages(String heading, Collection<Message> errorMessages) Returns the formatted message for an exception with the specified messages. | |
| formatText | back to summary |
|---|---|
| private static final String formatText(String text, Messages. | |
| getOnlyCause | back to summary |
|---|---|
| public static Throwable getOnlyCause(Collection<Message> messages) Returns the cause throwable if there is exactly one cause in | |
| mergeSources | back to summary |
|---|---|
| pack-priv static Message mergeSources(List<Object> sources, Message message) Prepends the list of sources to the given | |
| redBold | back to summary |
|---|---|
| public static final String redBold(String text) | |
| underline | back to summary |
|---|---|
| public static final String underline(String text) | |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv String | |
| pack-priv abstract String |
| type | back to summary |
|---|---|
| pack-priv final Class<T> type | |
| Converter | back to summary |
|---|---|
| pack-priv Converter(Class<T> type) | |
| appliesTo | back to summary |
|---|---|
| pack-priv boolean appliesTo(Object o) | |
| convert | back to summary |
|---|---|
| pack-priv String convert(Object o) | |
| toString | back to summary |
|---|---|
| pack-priv abstract String toString(T t) | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| public static final Messages. | |
| public static final Messages. | |
| public static final Messages. | |
| public static final Messages. | |
| public static final Messages. | |
| public static final Messages. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Messages. | |
| public static Messages. |
| ansiCode | back to summary |
|---|---|
| private final String ansiCode | |
| BOLD | back to summary |
|---|---|
| public static final Messages. | |
| FAINT | back to summary |
|---|---|
| public static final Messages. | |
| ITALIC | back to summary |
|---|---|
| public static final Messages. | |
| RED | back to summary |
|---|---|
| public static final Messages. | |
| RESET | back to summary |
|---|---|
| public static final Messages. | |
| UNDERLINE | back to summary |
|---|---|
| public static final Messages. | |
| FormatOptions | back to summary |
|---|---|
| private FormatOptions(String ansiCode) | |
| valueOf | back to summary |
|---|---|
| public static Messages. | |
| values | back to summary |
|---|---|
| public static Messages. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Messages. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | doEquivalent(Throwable a, Throwable b)
Implements abstract com. a and b are considered equivalent,
subject to the requirements specified in equivalent.
|
| protected int | doHash(Throwable t)
Implements abstract com. t, subject to the requirements
specified in hash.
|
| INSTANCE | back to summary |
|---|---|
| pack-priv static final Messages. | |
| ThrowableEquivalence | back to summary |
|---|---|
| private ThrowableEquivalence() | |
| doEquivalent | back to summary |
|---|---|
| protected boolean doEquivalent(Throwable a, Throwable b) Implements abstract com. Doc from com. Implemented by the user to determine whether This method should not be called except by
| |
| doHash | back to summary |
|---|---|
| protected int doHash(Throwable t) Implements abstract com. Doc from com. Implemented by the user to return a hash code for This method should not be called except by
| |