com.fasterxml.jackson.jaxrs.base.nocontent.JaxRS1NoContentExceptionSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.segments.asah.connector
Show all versions of com.liferay.segments.asah.connector
Liferay Segments Asah Connector
package com.fasterxml.jackson.jaxrs.base.nocontent;
import com.fasterxml.jackson.jaxrs.base.NoContentExceptionSupplier;
import java.io.IOException;
/**
* Create plain IOException for JaxRS 1.x because {@link javax.ws.rs.core.NoContentException}
* has been introduced in JaxRS 2.x
*/
public class JaxRS1NoContentExceptionSupplier implements NoContentExceptionSupplier
{
@Override
public IOException createNoContentException()
{
return new IOException(NO_CONTENT_MESSAGE);
}
}