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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getException()  
      java.lang.String getExceptionMessage()
      Get the exception message.
      java.lang.String getMessage()
      Get the message describing the error.
      java.lang.String getNestedExceptionMessage()
      Get the exception message.
      java.lang.String[] getNestedStackTrace()
      Get the stack trace elements.
      java.lang.String[] getStackTrace()
      Get the stack trace elements.
      void setExceptionMessage​(java.lang.String exceptionMessage)
      Set the exception message.
      void setMessage​(java.lang.String message)
      Set the message describing the error.
      void setStackTrace​(java.lang.String[] stackTraceList)
      Set the stack trace elements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

      • 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