com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class ValidationResult



  • public class ValidationResult
    extends Object

    Present the result of the email validating process.

    • Constructor Detail

      • ValidationResult

        public ValidationResult()

        Create an instance of the ValidationResult class

      • ValidationResult

        public ValidationResult(int responseCode)

        Create an instance of the ValidationResult class, with the specified

        Parameters:
        responseCode - The response code of the validating process.
        See Also:
        ValidationResponseCode
      • ValidationResult

        public ValidationResult(int responseCode,
                        RuntimeException lastException)

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

        Parameters:
        responseCode - The response code of the validating process.
        lastException - The last exception met in the validating process.
        See Also:
        ValidationResponseCode
    • Method Detail

      • getReturnCode

        public int getReturnCode()

        Gets or ses the response code of the validating process.

        Returns:
        a int.
      • setReturnCode

        public void setReturnCode(int value)

        Gets or ses the response code of the validating process.

        Parameters:
        value - a int.
      • getMessage

        public String getMessage()

        Gets the detail message about the result.

        Returns:
        a String object.
      • setLastException

        public void setLastException(RuntimeException value)

        The last error met in the validating process.

        Parameters:
        value - a RuntimeException object.