Class AnalysisError


  • public class AnalysisError
    extends java.lang.Object
    Object recording a recoverable error that occurred during analysis.
    Author:
    David Hovemeyer
    • Constructor Summary

      Constructors 
      Constructor Description
      AnalysisError​(java.lang.String message)
      Constructor.
      AnalysisError​(java.lang.String message, java.lang.Throwable exception)
      Constructor.
    • Constructor Detail

      • AnalysisError

        public AnalysisError​(java.lang.String message)
        Constructor.
        Parameters:
        message - message describing the error
      • AnalysisError

        public AnalysisError​(java.lang.String message,
                             java.lang.Throwable exception)
        Constructor.
        Parameters:
        message - message describing the error
        exception - exception which is the cause of the error
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • setMessage

        public void setMessage​(java.lang.String message)
        Set the message describing the error.
        Parameters:
        message - message describing the error
      • getMessage

        public java.lang.String getMessage()
        Get the message describing the error.
      • setExceptionMessage

        public void setExceptionMessage​(java.lang.String exceptionMessage)
        Set the exception message. This is the value returned by calling toString() on the original exception object.
        Parameters:
        exceptionMessage - the exception message
      • getExceptionMessage

        public java.lang.String getExceptionMessage()
        Get the exception message. This is the value returned by calling toString() on the original exception object.
      • getNestedExceptionMessage

        public java.lang.String getNestedExceptionMessage()
        Get the exception message. This is the value returned by calling toString() on the original exception object.
      • setStackTrace

        public void setStackTrace​(java.lang.String[] stackTraceList)
        Set the stack trace elements. These are the strings returned by calling toString() on each StackTraceElement in the original exception.
        Parameters:
        stackTraceList - the stack trace elements
      • getStackTrace

        public java.lang.String[] getStackTrace()
        Get the stack trace elements. These are the strings returned by calling toString() on each StackTraceElement in the original exception.
      • getNestedStackTrace

        public java.lang.String[] getNestedStackTrace()
        Get the stack trace elements. These are the strings returned by calling toString() on each StackTraceElement in the original exception.
      • getException

        public java.lang.Throwable getException()
        Returns:
        original exception object, or null if no exception was thrown