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

net.imglib2.exception.InvalidDimensionsException Maven / Gradle / Ivy

There is a newer version: 7.1.4
Show newest version
package net.imglib2.exception;

import net.imglib2.util.Util;

public class InvalidDimensionsException extends IllegalArgumentException
{
	private final long[] dimensions;

	public InvalidDimensionsException( final long[] dimensions, final String message )
	{
		super( message );
		this.dimensions = dimensions.clone();
	}

	public InvalidDimensionsException( final int[] dimensions, final String message )
	{
		this( Util.int2long( dimensions ), message );
	}

	public long[] getDimenionsCopy()
	{
		return this.dimensions.clone();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy