Statistics
| Revision:

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 @ 8682

History | View | Annotate | Download (1.25 KB)

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
 * @author fdiaz
8
 *
9
 */
10
public class CopyFromBandException extends BandException {
11

    
12
    /**
13
     *
14
     */
15
    private static final long serialVersionUID = 7307578790788586699L;
16
    private final static String MESSAGE_FORMAT =
17
        "Exception copying band '%(bandSource)' to '%(bandDest)'.";
18
    private final static String MESSAGE_KEY = "_CopyFromBandException";
19

    
20
    /**
21
     * Default constructor
22
     *
23
     * @param bandSource
24
     *            Band source
25
     * @param bandDest
26
     *            Band to be copied
27
     * @param cause
28
     *            Cause of exception
29
     */
30
    public CopyFromBandException(Band bandSource, Band bandDest, Throwable cause) {
31
        super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID);
32
        setValue("bandSource", bandSource);
33
        setValue("bandDest", bandDest);
34

    
35
    }
36

    
37
    /**
38
     * Default constructor
39
     *
40
     * @param bandSource
41
     *            Band source
42
     * @param bandDest
43
     *            Band to be copied
44
     */
45
    public CopyFromBandException(Band bandSource, Band bandDest) {
46
        this(bandSource, bandDest, null);
47
    }
48

    
49
}