public final class RDataConversionResult extends Object
| Modifier and Type | Method and Description |
|---|---|
static RDataConversionResult |
error(String errorMessage,
Exception ex)
Creates an instance of this class denoting an unsuccessful conversion.
|
String |
getErrorMessage()
Gets the error message in this result, if any.
|
Exception |
getException()
Gets the exception in this result, if any.
|
String |
getSuccessMessage()
Gets the success message in this result, if any.
|
static RDataConversionResult |
success(String successMessage)
Creates an instance of this class denoting a successful conversion.
|
public static RDataConversionResult error(String errorMessage, Exception ex)
errorMessage - The error message.ex - The exception reported by the conversion.public static RDataConversionResult success(String successMessage)
successMessage - The success message.public Exception getException()
public String getSuccessMessage()
public String getErrorMessage()
Copyright © 2016. All rights reserved.