Class CurationCommitConflictExceptionMapper

java.lang.Object
ubic.gemma.rest.providers.AbstractExceptionMapper<CurationCommitConflictException>
ubic.gemma.rest.providers.CurationCommitConflictExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<CurationCommitConflictException>

@Provider @Component public class CurationCommitConflictExceptionMapper extends AbstractExceptionMapper<CurationCommitConflictException>
Maps a CurationCommitConflictException to a 409 whose errors[0].reason is the stable code for which conflict it was, so a client routes on the code rather than on the wording of the message.

More specific than WebApplicationExceptionMapper, which would otherwise answer for it and emit the status alone.

Author:
gemma