public class ModelValidationException extends RuntimeException
Constructor and Description |
---|
ModelValidationException(String message,
List<ResourceModelIssue> issues)
Creates new resource model validation exception with the list of validation issues and the message.
|
Modifier and Type | Method and Description |
---|---|
List<ResourceModelIssue> |
getIssues()
Get validation issues.
|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ModelValidationException(String message, List<ResourceModelIssue> issues)
message
- message for the exception. The final message returned by getMessage()
will
contains the message
and other information about exception.issues
- validation issues.public List<ResourceModelIssue> getIssues()
public String getMessage()
getMessage
in class Throwable
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.