All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.automatiko.engine.service.exception.InvalidLifeCyclePhaseExceptionMapper Maven / Gradle / Ivy

The newest version!

package io.automatiko.engine.service.exception;

import java.util.Collections;

import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
import jakarta.ws.rs.ext.Provider;

import io.automatiko.engine.api.workflow.workitem.InvalidLifeCyclePhaseException;

@Provider
public class InvalidLifeCyclePhaseExceptionMapper extends BaseExceptionMapper
        implements ExceptionMapper {

    @Override
    public Response toResponse(InvalidLifeCyclePhaseException exception) {
        return badRequest(Collections.singletonMap(MESSAGE, exception.getMessage()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy