com.enonic.xp.content.UnableToDeleteContentException Maven / Gradle / Ivy
package com.enonic.xp.content;
import java.text.MessageFormat;
import com.enonic.xp.annotation.PublicApi;
@PublicApi
public final class UnableToDeleteContentException
extends RuntimeException
{
public UnableToDeleteContentException( final ContentPath path, final String reason )
{
super( MessageFormat.format( "Not able to delete content with path [{0}]: " + reason, path.toString() ) );
}
public UnableToDeleteContentException( final ContentId contentId, final String reason )
{
super( MessageFormat.format( "Not able to delete content with id [{0}]: " + reason, contentId.toString() ) );
}
}