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

com.enonic.xp.content.UnableToDeleteContentException Maven / Gradle / Ivy

The newest version!
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() ) );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy