Class DuplicateFaceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DuplicateFaceException
    extends java.lang.Exception
    Exception that's thrown in case a face name was not unique.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FaceObject getDuplicate()
      Returns the duplicate that caused this exception.
      FaceObject getExisting()
      Returns the other duplicate that caused this exception.
      • 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

      • DuplicateFaceException

        public DuplicateFaceException​(FaceObject duplicate,
                                      FaceObject existing)
        Creates a DuplicateFaceException.
        Parameters:
        duplicate - the duplicate face that's the cause
        existing - the existing face
    • Method Detail

      • getDuplicate

        public FaceObject getDuplicate()
        Returns the duplicate that caused this exception.
        Returns:
        duplicate
      • getExisting

        public FaceObject getExisting()
        Returns the other duplicate that caused this exception.
        Returns:
        duplicate