ValidationResult

Inheritance: java.lang.Object

public class ValidationResult

Present the result of the email validating process.

Constructors

Constructor 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.

Methods

Method Description
getReturnCode() Gets or ses the response code of the validating process.
setReturnCode(int value) Gets or ses the response code of the validating process.
getMessage() Gets the detail message about the result.
getLastException() The last error met in the validating process.
setLastException(RuntimeException value) The last error met in the validating process.

ValidationResult()

public ValidationResult()

Create an instance of the ValidationResult class

ValidationResult(int responseCode)

public ValidationResult(int responseCode)

Create an instance of the ValidationResult class, with the specified

Parameters:

Parameter Type Description
responseCode int The response code of the validating process.

ValidationResult(int responseCode, RuntimeException lastException)

public ValidationResult(int responseCode, RuntimeException lastException)

Create an instance of the ValidationResult class, with the specified , and the last exception.

Parameters:

Parameter Type Description
responseCode int The response code of the validating process.
lastException java.lang.RuntimeException The last exception met in the validating process.

getReturnCode()

public final int getReturnCode()

Gets or ses the response code of the validating process.

Returns: int

setReturnCode(int value)

public final void setReturnCode(int value)

Gets or ses the response code of the validating process.

Parameters:

Parameter Type Description
value int

getMessage()

public final String getMessage()

Gets the detail message about the result.

Returns: java.lang.String

getLastException()

public final RuntimeException getLastException()

The last error met in the validating process.

Returns: java.lang.RuntimeException

setLastException(RuntimeException value)

public final void setLastException(RuntimeException value)

The last error met in the validating process.

Parameters:

Parameter Type Description
value java.lang.RuntimeException