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

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy