Class APIViolationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class APIViolationException
    extends AbortException
    This class indicates an exception likely caused by an API not implemented correctly. ELKI has some API interface restrictions that cannot be expressed in the Java language and that are checked at runtime. This in particular includes parameterization and dynamic binding of algorithms to data. This exception indicates that such an API might not have been implemented correctly; you should check the documentation of interfaces you implement for API descriptions that are not expressible in Java (and thus not checked by the Java compiler).
    Since:
    0.4.0
    Author:
    Erich Schubert
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      Serial version
    • Constructor Summary

      Constructors 
      Constructor Description
      APIViolationException​(java.lang.String message)
      Constructor.
      APIViolationException​(java.lang.String message, java.lang.Throwable cause)
      Constructor.
    • Method Summary

      • 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
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serial version
        See Also:
        Constant Field Values
    • Constructor Detail

      • APIViolationException

        public APIViolationException​(java.lang.String message)
        Constructor.
        Parameters:
        message - Error message
      • APIViolationException

        public APIViolationException​(java.lang.String message,
                                     java.lang.Throwable cause)
        Constructor.
        Parameters:
        message - Error message
        cause - Reason