public class ValidationResult extends Object
Present the result of the email validating process.
Constructor and Description |
---|
ValidationResult()
Create an instance of the ValidationResult class
|
ValidationResult(int responseCode)
Create an instance of the ValidationResult class, with the specified
|
ValidationResult(int responseCode,
RuntimeException lastException)
Create an instance of the ValidationResult class, with the specified , and the last exception.
|
Modifier and Type | Method and Description |
---|---|
RuntimeException |
getLastException()
The last error met in the validating process.
|
String |
getMessage()
Gets the detail message about the result.
|
int |
getReturnCode()
Gets or ses the response code of the validating process.
|
void |
setLastException(RuntimeException value)
The last error met in the validating process.
|
void |
setReturnCode(int value)
Gets or ses the response code of the validating process.
|
public ValidationResult()
Create an instance of the ValidationResult class
public ValidationResult(int responseCode)
Create an instance of the ValidationResult class, with the specified
responseCode
- The response code of the validating process.ValidationResponseCode
public ValidationResult(int responseCode, RuntimeException lastException)
Create an instance of the ValidationResult class, with the specified , and the last exception.
responseCode
- The response code of the validating process.lastException
- The last exception met in the validating process.ValidationResponseCode
public final int getReturnCode()
Gets or ses the response code of the validating process.
public final void setReturnCode(int value)
Gets or ses the response code of the validating process.
public final String getMessage()
Gets the detail message about the result.
public final RuntimeException getLastException()
The last error met in the validating process.
public final void setLastException(RuntimeException value)
The last error met in the validating process.