
io.scalecube.services.exceptions.ServiceProviderErrorMapper Maven / Gradle / Ivy
package io.scalecube.services.exceptions;
import io.scalecube.services.api.ServiceMessage;
@FunctionalInterface
public interface ServiceProviderErrorMapper {
/**
* Maps an exception to a {@link ServiceMessage}.
*
* @param throwable the exception to map to a service message.
* @return a service message mapped from the supplied exception.
*/
ServiceMessage toMessage(Throwable throwable);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy