public class DuplicateKeyException extends DataIntegrityViolationException
代わりに、より広い範囲の制約違反を意味的に含む一般的な DataIntegrityViolationException
を処理することを検討してください。
コンストラクターと説明 |
---|
DuplicateKeyException(StringSE msg) DuplicateKeyException のコンストラクター。 |
DuplicateKeyException(StringSE msg, ThrowableSE cause) DuplicateKeyException のコンストラクター。 |
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressedSE, fillInStackTraceSE, getCauseSE, getLocalizedMessageSE, getStackTraceSE, getSuppressedSE, initCauseSE, printStackTraceSE, printStackTraceSE, printStackTraceSE, setStackTraceSE, toStringSE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public DuplicateKeyException(StringSE msg)
msg
- 詳細メッセージ public DuplicateKeyException(StringSE msg, ThrowableSE cause)
msg
- 詳細メッセージ cause
- 使用中のデータアクセス API の根本原因