public class DataConstraintViolationError extends Error
| Constructor and Description |
|---|
DataConstraintViolationError() |
DataConstraintViolationError(ErrorMsg errorMsg) |
DataConstraintViolationError(ErrorMsg message,
String... msgArgs) |
DataConstraintViolationError(String message) |
DataConstraintViolationError(String message,
Throwable cause) |
DataConstraintViolationError(Throwable cause) |
DataConstraintViolationError(Throwable cause,
ErrorMsg errorMsg) |
DataConstraintViolationError(Throwable cause,
ErrorMsg errorMsg,
String... msgArgs)
This is the recommended constructor to use since it helps use
canonical messages throughout and propagate remote errors.
|
| Modifier and Type | Method and Description |
|---|---|
ErrorMsg |
getCanonicalErrorMsg() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DataConstraintViolationError()
public DataConstraintViolationError(String message)
public DataConstraintViolationError(Throwable cause)
public DataConstraintViolationError(ErrorMsg message, String... msgArgs)
public DataConstraintViolationError(Throwable cause, ErrorMsg errorMsg)
public DataConstraintViolationError(ErrorMsg errorMsg)
public DataConstraintViolationError(Throwable cause, ErrorMsg errorMsg, String... msgArgs)
errorMsg - Canonical error messagemsgArgs - message arguments if message is parametrized; must be null is message takes no argumentspublic ErrorMsg getCanonicalErrorMsg()
ErrorMsg.GENERIC_ERROR by defaultCopyright © 2019 The Apache Software Foundation. All Rights Reserved.