net.imglib2.exception.InvalidDimensionsException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of imglib2 Show documentation
Show all versions of imglib2 Show documentation
A multidimensional, type-agnostic image processing library.
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();
}
}