InputError in various ways.
Note
We're using MessageFormat extensively here, which hasn't been updated to use
StringBuilder so we'll sadly have to make do with StringBuffer
| Modifier and Type | Field and Description |
|---|---|
| public static final PropertyResourceBundle | GENERAL_MESSAGE_BUNDLE
|
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| private static void | appendFrame(StringBuffer messageBuilder, WorkingDocument.
|
| private static void | |
| public static void | |
| public static String | |
| public static Element | |
| public static Element | formatErrorAsXML(Document
Document that will contain the resulting element.InputError to formatfalse if you just want the error code, true for full details. fullDetails)Creates a DOM |
| public static Element | formatErrorAsXML(Document
Document that will contain the resulting element.InputError to formatfalse if you just want the error code, true for full details. fullDetails)Creates a DOM |
| public static String | |
| public static String | |
| private static String | formatText(CharSequence content)
Trivial helper to truncate a portion of text if it goes longer than |
| public static String | |
| public static String | getErrorMessage(ErrorCode errorCode, Object... arguments)
Constructs an error message for the given |
| GENERAL_MESSAGE_BUNDLE | back to summary |
|---|---|
| public static final PropertyResourceBundle GENERAL_MESSAGE_BUNDLE
| |
| TRUNCATE_LENGTH | back to summary |
|---|---|
| private static final int TRUNCATE_LENGTH | |
| MessageFormatter | back to summary |
|---|---|
| public MessageFormatter() | |
| appendErrorAsString | back to summary |
|---|---|
| public static void appendErrorAsString(StringBuffer messageBuilder, InputError error) | |
| appendFrame | back to summary |
|---|---|
| private static void appendFrame(StringBuffer messageBuilder, WorkingDocument. | |
| appendNewlineIfRequired | back to summary |
|---|---|
| private static void appendNewlineIfRequired(StringBuffer messageBuilder) | |
| appendSliceContext | back to summary |
|---|---|
| public static void appendSliceContext(StringBuffer messageBuilder, FrozenSlice slice) | |
| formatErrorAsString | back to summary |
|---|---|
| public static String formatErrorAsString(InputError error) Creates a full diagnosis of the given error | |
| formatErrorAsXHTML | back to summary |
|---|---|
| public static Element formatErrorAsXHTML(Document ownerDocument, InputError error) | |
| formatErrorAsXML | back to summary |
|---|---|
| public static Element formatErrorAsXML(Document ownerDocument, InputError error, boolean fullDetails) Creates a DOM
The error
| |
| formatErrorAsXML | back to summary |
|---|---|
| public static Element formatErrorAsXML(Document ownerDocument, DOMOutputOptions options, InputError error, boolean fullDetails) Creates a DOM
The error
| |
| formatErrorCodeName | back to summary |
|---|---|
| public static String formatErrorCodeName(ErrorCode errorCode) | |
| formatErrorGroup | back to summary |
|---|---|
| public static String formatErrorGroup(ErrorGroup errorGroup) | |
| formatText | back to summary |
|---|---|
| private static String formatText(CharSequence content) Trivial helper to truncate a portion of text if it goes longer than | |
| getErrorMessage | back to summary |
|---|---|
| public static String getErrorMessage(InputError error) Constructs an error message for the given | |
| getErrorMessage | back to summary |
|---|---|
| public static String getErrorMessage(ErrorCode errorCode, Object... arguments) Constructs an error message for the given | |