com.arm.mbed.cloud.sdk.common.CallbackWithException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mbed-cloud-sdk Show documentation
Show all versions of mbed-cloud-sdk Show documentation
The Pelion Cloud SDK (formerly known as Mbed Cloud SDK) provides a simplified interface to the Pelion Cloud APIs by exposing functionality using conventions and paradigms familiar to Java developers.
/**
*
*/
package com.arm.mbed.cloud.sdk.common;
import com.arm.mbed.cloud.sdk.annotations.Preamble;
/**
* Defines a callback.
*
* Similar to @link {@link Callback} but the action may throw an exception.
*
* @param
* callback argument type
*/
@Preamble(description = "Callback which can throw an exception if an error occurs during its execution")
public interface CallbackWithException {
/**
* Callback execution action.
*
* @param arg
* function argument
* @throws U
* if an error happens during the process
*/
void execute(T arg) throws U;
}