Class XmlValidationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class XmlValidationException
    extends java.lang.RuntimeException
    Use custom XML validation exception to allow specific handling of a failed XML validation verses another type of XML failure.
    Author:
    Ikasan Development Team
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      XmlValidationException​(javax.xml.bind.ValidationEvent validationEvent)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFailedEvent()
      Get the String representation of the event XML failing validation
      javax.xml.bind.ValidationEvent getValidationEvent()
      Get the event encompassing the validation error and original object which failed.
      void setFailedEvent​(java.lang.String failedEvent)
      Set the String representation of the event XML failing validation
      • 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

      • XmlValidationException

        public XmlValidationException​(javax.xml.bind.ValidationEvent validationEvent)
        Constructor
        Parameters:
        validationEvent -
    • Method Detail

      • getValidationEvent

        public javax.xml.bind.ValidationEvent getValidationEvent()
        Get the event encompassing the validation error and original object which failed.
      • setFailedEvent

        public void setFailedEvent​(java.lang.String failedEvent)
        Set the String representation of the event XML failing validation
        Parameters:
        failedEvent -
      • getFailedEvent

        public java.lang.String getFailedEvent()
        Get the String representation of the event XML failing validation
        Returns:
        failedEvent