Class FaceAuthenticationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class FaceAuthenticationException
    extends java.lang.Exception
    Exception returned by a session when face authentication fails because of the similarity score between the session and registered faces is too low
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getMax()  
      java.lang.String getMessage()  
      float getScore()  
      float getThreshold()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • FaceAuthenticationException

        public FaceAuthenticationException​(float score,
                                           float threshold,
                                           float max)
    • Method Detail

      • getScore

        public float getScore()
        Returns:
        Similarity score
      • getThreshold

        public float getThreshold()
        Returns:
        Similarity score threshold required to pass the authentication
      • getMax

        public float getMax()
        Returns:
        Maximum possible similarity score
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        Message that describes the exception