net.sf.saxon

Class Err


public class Err
extends java.lang.Object

Class containing utility methods for handling error messages

Field Summary

static int
ATTRIBUTE
static int
ELEMENT
static int
FUNCTION
static int
GENERAL
static int
URI
static int
VALUE
static int
VARIABLE

Method Summary

static CharSequence
depict(Item item)
Create a string representation of an item for use in an error message
static String
wrap(CharSequence cs)
Add delimiters to represent variable information within an error message
static String
wrap(CharSequence cs, int valueType)
Add delimiters to represent variable information within an error message

Field Details

ATTRIBUTE

public static final int ATTRIBUTE
Field Value:
2

ELEMENT

public static final int ELEMENT
Field Value:
1

FUNCTION

public static final int FUNCTION
Field Value:
3

GENERAL

public static final int GENERAL
Field Value:
6

URI

public static final int URI
Field Value:
7

VALUE

public static final int VALUE
Field Value:
4

VARIABLE

public static final int VARIABLE
Field Value:
5

Method Details

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