gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.buffer / org.gvsig.raster.lib.buffer.impl / src / main / java / org / gvsig / raster / lib / buffer / impl / exceptions / CopyFromBandException.java @ 5452
History | View | Annotate | Download (984 Bytes)
1 |
package org.gvsig.raster.lib.buffer.impl.exceptions; |
---|---|
2 |
|
3 |
import org.gvsig.raster.lib.buffer.api.Band; |
4 |
import org.gvsig.raster.lib.buffer.api.exceptions.BandException; |
5 |
|
6 |
|
7 |
|
8 |
/**
|
9 |
* @author fdiaz
|
10 |
*
|
11 |
*/
|
12 |
public class CopyFromBandException extends BandException { |
13 |
|
14 |
/**
|
15 |
*
|
16 |
*/
|
17 |
private static final long serialVersionUID = 7307578790788586699L; |
18 |
private final static String MESSAGE_FORMAT = "Exception copying band '%(bandSource)' to '%(bandDest)'."; |
19 |
private final static String MESSAGE_KEY = "_CopyFromBandException"; |
20 |
|
21 |
/**
|
22 |
* @param band
|
23 |
* @param cause
|
24 |
*/
|
25 |
public CopyFromBandException(Band bandSource, Band bandDest, Throwable cause) { |
26 |
super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID);
|
27 |
setValue("bandSource", bandSource);
|
28 |
setValue("bandDest", bandDest);
|
29 |
|
30 |
} |
31 |
|
32 |
/**
|
33 |
* @param type
|
34 |
*/
|
35 |
public CopyFromBandException(Band bandSource, Band bandDest) {
|
36 |
this(bandSource, bandDest, null); |
37 |
} |
38 |
|
39 |
} |