net.sf.saxon.trans

Class Err

public class Err extends Object

Class containing utility methods for handling error messages
Field Summary
static intATTRIBUTE
static intELEMENT
static intFUNCTION
static intGENERAL
static intURI
static intVALUE
static intVARIABLE
Method Summary
static CharSequencedepict(Item item)
Create a string representation of an item for use in an error message
static Stringwrap(CharSequence cs)
Add delimiters to represent variable information within an error message
static Stringwrap(CharSequence cs, int valueType)
Add delimiters to represent variable information within an error message

Field Detail

ATTRIBUTE

public static final int ATTRIBUTE

ELEMENT

public static final int ELEMENT

FUNCTION

public static final int FUNCTION

GENERAL

public static final int GENERAL

URI

public static final int URI

VALUE

public static final int VALUE

VARIABLE

public static final int VARIABLE

Method Detail

depict

public static CharSequence depict(Item item)
Create a string representation of an item for use in an error message

wrap

public static String wrap(CharSequence cs)
Add delimiters to represent variable information within an error message

Parameters: cs the variable information to be delimited

Returns: the delimited variable information

wrap

public static String wrap(CharSequence cs, int valueType)
Add delimiters to represent variable information within an error message

Parameters: cs the variable information to be delimited valueType the type of value, e.g. element name or attribute name

Returns: the delimited variable information