public static class UESSheetRTBBCodeException.UESSheetBBCodeValidationErrorItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private UESSheetRTBBCodeException.UESSheetBBCodeValidationErrorCode |
errorCode
Error code from UESSheetBBCodeValidationErrorCode enumeration
|
private boolean |
fatal
Flag determining whether error is fatal (which means further BBCode processing was stopped when this error occurred in legacy logic
and exception was thrown immediately after this item was added to list of error items) Fatal error is e.g. error in XSD validation
|
static java.lang.String |
FIELD_DELIMITER
Delimiter used for serializing fields
|
private java.lang.String |
fullMessage
Default message of the error item with with prepend part containing fields values in human readable form added to it
|
private boolean |
onEndTag
Flag determining if the error is on start tag or on end tag
|
private java.lang.Object[] |
params
Parameters used for formatting of the message
|
private java.lang.String |
tagName
Tag type(name)
|
private int |
tagNumber
Number of tag of given type(name) in the BBCode, either number of start tag of given type or end tag of given type, depending on the
onEndTag field
|
Constructor and Description |
---|
UESSheetRTBBCodeException.UESSheetBBCodeValidationErrorItem(UESSheetRTBBCodeException.UESSheetBBCodeValidationErrorCode errorCode,
Creates a new instance of UESSheetBBCodeValidationErrorItem.
|
UESSheetRTBBCodeException.UESSheetBBCodeValidationErrorItem(UESSheetRTBBCodeException.UESSheetBBCodeValidationErrorCode errorCode,
Creates a new instance of UESSheetBBCodeValidationErrorItem from supplied serialized fields.
|
Modifier and Type | Method and Description |
---|---|
private static void |
addPart(java.lang.StringBuilder sb, |
UESSheetRTBBCodeException.UESSheetBBCodeValidationErrorCode |
getErrorCode() |
java.lang.String |
getFullMessage() |
java.lang.Object[] |
getParams() |
java.lang.String |
getSerializedFields()
Returns string containing serialized fields (tagNumber, onEndTag, fatal, tagName) separated by FIELD_DELIMITER
|
java.lang.String |
getTagName() |
int |
getTagNumber() |
boolean |
isFatal() |
boolean |
isOnEndTag() |
private java.lang.String |
prepareFullMessage(java.lang.String message)
Adds prepend part containing fields values in human readable form added to given error message.
|
errorCode
- errorCode from UESSheetBBCodeValidationErrorCode enumerationtagNumber
- Number of tag of given type(name) in the BBCode, either number of start tag of given type or end tag of given type,
depending on the onEndTag fieldtagName
- Tag type(name)onEndTag
- Flag determining if the error is on start tag or on end tagfatal
- Flag determining whether error is fatal (which means further BBCode processing was stopped when this error occurred in
legacy logic and exception was thrown immediately after this item was added to list of error items) Fatal error is e.g.
error in XSD validationmessage
- Default message of the error itemparams
- Parameters used for formatting of the messageerrorCode
- errorCode from UESSheetBBCodeValidationErrorCode enumerationserializedFields
- fields of this object (tagNumber, tagName, onEndTag, fatal) serialized into String by getSerializedFields
methodmessage
- Full message with prepend part already added and with parameters already filledmessage
- Default message of the error item