public class UnitExistsException extends UnitDBException
| Constructor and Description |
|---|
UnitExistsException(String msg)
Constructs from an error message.
|
UnitExistsException(Unit oldUnit,
Unit newUnit)
Constructs from the existing unit and the redefining unit.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnitExistsException(Unit oldUnit, Unit newUnit)
oldUnit - The previously existing unit in the database.newUnit - The unit attempting the redefinition.public UnitExistsException(String msg)
msg - The error message.