
io.scalecube.services.exceptions.ServiceClientErrorMapper Maven / Gradle / Ivy
package io.scalecube.services.exceptions;
import io.scalecube.services.api.ServiceMessage;
@FunctionalInterface
public interface ServiceClientErrorMapper {
/**
* Maps service message to an exception.
*
* @param message the message to map to an exception.
* @return an exception mapped from qualifier and error data.
*/
Throwable toError(ServiceMessage message);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy