public class ConnectionValidationResult extends Object
| Modifier and Type | Method and Description |
|---|---|
static ConnectionValidationResult |
failure(String message,
ErrorType errorType,
Exception exception) |
static ConnectionValidationResult |
failure(String message,
Exception exception) |
Optional<ErrorType> |
getErrorType() |
Exception |
getException() |
String |
getMessage() |
boolean |
isValid() |
static ConnectionValidationResult |
success() |
public static ConnectionValidationResult success()
ConnectionValidationResult with a valid status.public static ConnectionValidationResult failure(String message, Exception exception)
message - Message in case of a invalid connectionexception - The exception that causes the connection invalidityConnectionValidationResult with a invalid status.public static ConnectionValidationResult failure(String message, ErrorType errorType, Exception exception)
message - Message in case of a invalid connectionerrorType - An ErrorType that represents the cause of the invalid connectionexception - The exception that causes the connection invalidityConnectionValidationResult with a invalid status.public boolean isValid()
boolean indicating if the connection is valid or not.public String getMessage()
String indicating the Validation message.
The message should not be null in case of a invalid connection.public Optional<ErrorType> getErrorType()
ErrorType indicating the type of the occurred problem.Copyright © 2017 MuleSoft, Inc.. All rights reserved.