Class ValidationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ValidationException
    extends java.lang.RuntimeException
    Validiation exception which indicates a validation result where progressing should not continue.
    Author:
    tilois - initial API and implementation
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidationException​(java.lang.String aMessage)
      Creates a validation exception with the given message.
      ValidationException​(java.lang.String aMessage, java.lang.Throwable aCause)
      Creates a validation exception with the given cause and message.
      ValidationException​(java.lang.String aMessage, java.lang.Throwable aCause, org.eclipse.xtext.nodemodel.ICompositeNode aNode)
      Creates a validation exception with the given cause, message and the the node causing the validation failure.
      ValidationException​(java.lang.String aMessage, org.eclipse.xtext.nodemodel.ICompositeNode aNode)
      Creates a validation exception with the given message and the the node causing the validation failure.
      ValidationException​(java.lang.Throwable aCause)
      Creates a validation exception with the given cause.
      ValidationException​(java.lang.Throwable aCause, org.eclipse.xtext.nodemodel.ICompositeNode aNode)
      Creates a validation exception with the given cause and the the node causing the validation failure.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.xtext.nodemodel.ICompositeNode getOriginNode()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • ValidationException

        public ValidationException​(java.lang.String aMessage)
        Creates a validation exception with the given message.
        Parameters:
        aMessage - Message for the validation exception.
      • ValidationException

        public ValidationException​(java.lang.Throwable aCause)
        Creates a validation exception with the given cause.
        Parameters:
        aCause - Cause of the validation exception.
      • ValidationException

        public ValidationException​(java.lang.String aMessage,
                                   java.lang.Throwable aCause)
        Creates a validation exception with the given cause and message.
        Parameters:
        aMessage - Message for the validation exception.
        aCause - Cause of the validation exception.
      • ValidationException

        public ValidationException​(java.lang.String aMessage,
                                   org.eclipse.xtext.nodemodel.ICompositeNode aNode)
        Creates a validation exception with the given message and the the node causing the validation failure.
        Parameters:
        aMessage - Message for the validation exception.
        aNode - Node causing the validation exception.
      • ValidationException

        public ValidationException​(java.lang.Throwable aCause,
                                   org.eclipse.xtext.nodemodel.ICompositeNode aNode)
        Creates a validation exception with the given cause and the the node causing the validation failure.
        Parameters:
        aCause - Cause of the validation exception.
        aNode - Node causing the validation exception.
      • ValidationException

        public ValidationException​(java.lang.String aMessage,
                                   java.lang.Throwable aCause,
                                   org.eclipse.xtext.nodemodel.ICompositeNode aNode)
        Creates a validation exception with the given cause, message and the the node causing the validation failure.
        Parameters:
        aMessage - Message for the validation exception.
        aCause - Cause of the validation exception.
        aNode - Node causing the validation exception.
    • Method Detail

      • getOriginNode

        public org.eclipse.xtext.nodemodel.ICompositeNode getOriginNode()