com.enonic.xp.resource.ResourceNotFoundException Maven / Gradle / Ivy
The newest version!
package com.enonic.xp.resource;
import java.text.MessageFormat;
import com.enonic.xp.annotation.PublicApi;
import com.enonic.xp.exception.NotFoundException;
@PublicApi
public final class ResourceNotFoundException
extends NotFoundException
{
private final ResourceKey resource;
public ResourceNotFoundException( final ResourceKey resource )
{
super( MessageFormat.format( "Resource [{0}] was not found", resource ) );
this.resource = resource;
}
public ResourceKey getResource()
{
return this.resource;
}
}