Package net.sf.gridarta.model.face
Class DuplicateFaceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.sf.gridarta.model.face.DuplicateFaceException
-
- All Implemented Interfaces:
java.io.Serializable
public class DuplicateFaceException extends java.lang.ExceptionException that's thrown in case a face name was not unique.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DuplicateFaceException(FaceObject duplicate, FaceObject existing)Creates a DuplicateFaceException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FaceObjectgetDuplicate()Returns the duplicate that caused this exception.FaceObjectgetExisting()Returns the other duplicate that caused this exception.
-
-
-
Constructor Detail
-
DuplicateFaceException
public DuplicateFaceException(FaceObject duplicate, FaceObject existing)
Creates a DuplicateFaceException.- Parameters:
duplicate- the duplicate face that's the causeexisting- 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
-
-