Package net.sf.saxon
Class Err
java.lang.Object
net.sf.saxon.Err
Class containing utility methods for handling error messages
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharSequence
Create a string representation of an item for use in an error messagestatic String
wrap
(CharSequence cs) Add delimiters to represent variable information within an error messagestatic String
wrap
(CharSequence cs, int valueType) Add delimiters to represent variable information within an error message
-
Field Details
-
ELEMENT
public static final int ELEMENT- See Also:
-
ATTRIBUTE
public static final int ATTRIBUTE- See Also:
-
FUNCTION
public static final int FUNCTION- See Also:
-
VALUE
public static final int VALUE- See Also:
-
VARIABLE
public static final int VARIABLE- See Also:
-
GENERAL
public static final int GENERAL- See Also:
-
URI
public static final int URI- See Also:
-
-
Constructor Details
-
Err
public Err()
-
-
Method Details
-
wrap
Add delimiters to represent variable information within an error message- Parameters:
cs
- the variable information to be delimited- Returns:
- the delimited variable information
-
wrap
Add delimiters to represent variable information within an error message- Parameters:
cs
- the variable information to be delimitedvalueType
- the type of value, e.g. element name or attribute name- Returns:
- the delimited variable information
-
depict
Create a string representation of an item for use in an error message
-