Package net.sf.saxon

Class Err


  • public class Err
    extends java.lang.Object
    Class containing utility methods for handling error messages
    • Constructor Summary

      Constructors 
      Constructor Description
      Err()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.CharSequence depict​(Item item)
      Create a string representation of an item for use in an error message
      static java.lang.String wrap​(java.lang.CharSequence cs)
      Add delimiters to represent variable information within an error message
      static java.lang.String wrap​(java.lang.CharSequence cs, int valueType)
      Add delimiters to represent variable information within an error message
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Err

        public Err()
    • Method Detail

      • wrap

        public static java.lang.String wrap​(java.lang.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 java.lang.String wrap​(java.lang.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 java.lang.CharSequence depict​(Item item)
        Create a string representation of an item for use in an error message