public class ConnectionValidationResult extends Object
| Modifier and Type | Method and Description |
|---|---|
static ConnectionValidationResult |
failure(String message,
ConnectionExceptionCode code,
Exception exception) |
ConnectionExceptionCode |
getCode() |
Exception |
getException() |
String |
getMessage() |
boolean |
isValid() |
static ConnectionValidationResult |
success() |
public static ConnectionValidationResult success()
ConnectionValidationResult with a valid status.public static ConnectionValidationResult failure(String message, ConnectionExceptionCode code, Exception exception)
message - Message in case of a invalid connectioncode - A ConnectionExceptionCode 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 ConnectionExceptionCode getCode()
ConnectionExceptionCode indicating the Validation code.
The code should not be null in case of a invalid connection.Copyright © 2016 MuleSoft, Inc.. All rights reserved.