JavaScript is disabled on your browser.
Skip navigation links
gnu.text

Class SourceError

  • All Implemented Interfaces:
    javax.xml.transform.SourceLocator, org.xml.sax.Locator


    public class SourceError
    extends SourceLocator.Simple 
    Represents an error message from processing a "source" file.
    • Field Detail

      • next

        public SourceError next
        Used to chain to the "next" message.
      • severity

        public char severity
        The seriousness of the error - one of 'i' (for informational), 'w' (for warning), 'e' (for error), or 'f' (for fatal error).
      • code

        public java.lang.String code
        If non-null, an error code, as might be specified by a standard.
      • message

        public java.lang.String message
        The actual error message. This is post-localization and -formatting. It can contain multiple lines, separated by '\n'.
      • fakeException

        public java.lang.Throwable fakeException
        Provides optional stack trace. Filled when --debug-error-prints-stack-trace or --debug-warning-prints-stack-trace option is used.
    • Constructor Detail

      • SourceError

        public SourceError(char severity,
         java.lang.String filename,
         int line,
         int column,
         java.lang.String message)
      • SourceError

        public SourceError(char severity,
         SourceLocator location,
         java.lang.String message)
      • SourceError

        public SourceError(gnu.kawa.io.InPort port,
         char severity,
         java.lang.String message)
        Create a new SourceError using the current line/column from a InPort.
    • Method Detail

      • toString

        public java.lang.String toString()
        Convert the error to a String. The String starts with filename, line and option column, followed by the message. Warning messages are indicated as such.
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString(boolean stripDirectories)
        Convert the error to a String. The String starts with filename, line and option column, followed by the message. Warning messages are indicated as such.
      • appendEscaped

        public static void appendEscaped(java.lang.Appendable out,
         java.lang.CharSequence str)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • appendTo

        public void appendTo(java.lang.Appendable out,
         boolean stripDirectories,
         java.lang.String newLine)
      • print

        public void print(java.lang.Appendable out)
      • println

        public void println(java.lang.Appendable out,
         boolean stripDirectories)
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /