Package net.sf.saxon

Class Err

java.lang.Object
net.sf.saxon.Err

public class Err extends Object
Class containing utility methods for handling error messages
  • Field Details

  • Constructor Details

    • Err

      public Err()
  • Method Details

    • 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
    • depict

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