T
- the return of transmission execution.public class TransmissionResult<T> extends Object implements ITransmissionResult<T>
Constructor and Description |
---|
TransmissionResult(Exception exception)
Creates a new instance with the exception thrown during the execution.
|
TransmissionResult(T result)
Creates a new instance with the given result.
|
Modifier and Type | Method and Description |
---|---|
Exception |
getException()
Returns the transmission execution exception.
|
T |
getResult()
Returns the transmission execution result.
|
public TransmissionResult(T result)
result
- the result.public TransmissionResult(Exception exception)
exception
- the exception.public T getResult()
ITransmissionResult
getResult
in interface ITransmissionResult<T>
public Exception getException()
ITransmissionResult
getException
in interface ITransmissionResult<T>
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.