public class DuplicateException extends RuntimeException implements MAJException, NewForMAJ
Thrown when an attempt is made to add an element to a set that is already contained in that set.
No equivalent C result code.
| Constructor and Description |
|---|
DuplicateException()
Create a new duplicate exception with no message.
|
DuplicateException(String msg)
Create a new duplicate exception with the given descriptive message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DuplicateException(String msg)
Create a new duplicate exception with the given descriptive message.
msg - Message describing the exception.public DuplicateException()
Create a new duplicate exception with no message.
(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.