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

info.freelibrary.iiif.presentation.v3.ContentOutOfBoundsException Maven / Gradle / Ivy

There is a newer version: 0.12.4
Show newest version

package info.freelibrary.iiif.presentation.v3;

import info.freelibrary.iiif.presentation.v3.utils.MessageCodes;
import info.freelibrary.util.I18nRuntimeException;

/**
 * An exception thrown when attempting to paint a {@link Canvas} (or a region of one) with a {@link ContentResource}
 * that doesn't fit within the canvas (or region) bounds.
 */
public class ContentOutOfBoundsException extends I18nRuntimeException {

    /**
     * The serialVersionUID for an ContentResourceOutOfBoundsException.
     */
    private static final long serialVersionUID = 500985625287874950L;

    /**
     * Creates a new ContentResourceOutOfBoundsException.
     *
     * @param aMessageCode A message code
     * @param aDetails Additional details about the exception
     */
    public ContentOutOfBoundsException(final String aMessageCode, final Object... aDetails) {
        super(MessageCodes.BUNDLE, aMessageCode, aDetails);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy