de.cau.cs.kieler.synccharts.text.actions.bridge
Class DiagnosticException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.cau.cs.kieler.core.KielerModelException
              extended by de.cau.cs.kieler.synccharts.text.actions.bridge.DiagnosticException

public class DiagnosticException
extends KielerModelException

A KielerModelException that also contains Diagnostic information. A Diagnostic Object may contain additional information about errors. For Example Xtext creates Diagnostics at parse errors. This might be used to determine concrete causes of errors

Rating red

Constructor Summary
DiagnosticException(String message, Object thecausingModelObject, List<Resource.Diagnostic> diagnostics)
          Main Constructor.
 
Method Summary
 List<Resource.Diagnostic> getDiagnostics()
           
 
Methods inherited from class de.cau.cs.kieler.core.KielerModelException
getModelObject
 
Methods inherited from class java.lang.Throwable
getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiagnosticException

public DiagnosticException(String message,
                           Object thecausingModelObject,
                           List<Resource.Diagnostic> diagnostics)
Main Constructor.

Parameters:
message - An error message to be displayed.
thecausingModelObject - The model object that has caused the exception.
diagnostics - A List of Diagnostic objects to be attached to the exception.
Method Detail

getDiagnostics

public List<Resource.Diagnostic> getDiagnostics()
Returns:
the List of Diagnostic elements contained by this Exception.