public class RequiredArgumentException extends IllegalArgumentException
This is primarily intended for use when populating Kotlin form beans with non-nullable properties and failing early rather than validate the entire bean.
| Constructor and Description |
|---|
RequiredArgumentException(Exception e) |
RequiredArgumentException(String message,
Exception e) |
RequiredArgumentException(String message,
String property) |
| Modifier and Type | Method and Description |
|---|---|
String |
getProperty()
Return the name of the property that is required.
|
void |
setProperty(String property)
Set the name of the required property.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RequiredArgumentException(String message, String property)
public RequiredArgumentException(Exception e)
public RequiredArgumentException(String message, Exception e)
public String getProperty()
public void setProperty(String property)
Copyright © 2019. All rights reserved.