Package net.sf.saxon.trans
Class Err
java.lang.Object
net.sf.saxon.trans.Err
Class containing utility methods for handling error messages
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringabbreviateEQName(String eqName) static StringabbreviateURI(String uri) Abbreviate a URI for use in error messagesstatic Stringstatic StringCreate a string representation of an item for use in an error messagestatic StringdepictCodepoint(int cp) static CharSequencedepictSequence(Sequence seq) static StringdepictSequenceStart(SequenceIterator seq, int max, int actual) static StringdescribeGenre(Genre genre) static Stringstatic StringindefiniteArticleFor(String s, boolean caps) static Stringstatic UnicodeStringstatic StringAdd delimiters to represent variable information within an error messagestatic StringAdd delimiters to represent variable information within an error messagestatic Stringwrap(Expression exp) static Stringwrap(UnicodeString cs) Add delimiters to represent variable information within an error messagestatic Stringwrap(UnicodeString 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:
-
EQNAME
public static final int EQNAME- 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 delimited- Returns:
- the delimited variable information
-
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 -
depictCodepoint
-
depictSequence
-
depictSequenceStart
-
truncate30
-
abbreviateURI
Abbreviate a URI for use in error messages- Parameters:
uri- the full URI- Returns:
- the URI, truncated at the last slash or to the last 15 characters, with a leading ellipsis, as appropriate
-
abbreviateURI
-
abbreviateEQName
-
wrap
-
describeGenre
-
describeVisibility
-
show
-
indefiniteArticleFor
-