public class Err
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE |
static int |
ELEMENT |
static int |
FUNCTION |
static int |
GENERAL |
static int |
URI |
static int |
VALUE |
static int |
VARIABLE |
Constructor and Description |
---|
Err() |
Modifier and Type | Method and Description |
---|---|
static java.lang.CharSequence |
depict(Item item)
Create a string representation of an item for use in an error message
|
static java.lang.String |
wrap(java.lang.CharSequence cs)
Add delimiters to represent variable information within an error message
|
static java.lang.String |
wrap(java.lang.CharSequence cs,
int valueType)
Add delimiters to represent variable information within an error message
|
public static final int ELEMENT
public static final int ATTRIBUTE
public static final int FUNCTION
public static final int VALUE
public static final int VARIABLE
public static final int GENERAL
public static final int URI
public static java.lang.String wrap(java.lang.CharSequence cs)
cs
- the variable information to be delimitedpublic static java.lang.String wrap(java.lang.CharSequence cs, int valueType)
cs
- the variable information to be delimitedvalueType
- the type of value, e.g. element name or attribute namepublic static java.lang.CharSequence depict(Item item)