Statistics
| Revision:

svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.library / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.buffer.impl / src / main / java / org / gvsig / raster / lib / buffer / impl / exceptions / CreateBandTypeException.java @ 43803

History | View | Annotate | Download (835 Bytes)

1
package org.gvsig.raster.lib.buffer.impl.exceptions;
2

    
3
import org.gvsig.raster.lib.buffer.api.exceptions.BandException;
4

    
5

    
6

    
7
/**
8
 * @author fdiaz
9
 *
10
 */
11
public class CreateBandTypeException extends BandException {
12

    
13
    /**
14
     *
15
     */
16
    private static final long serialVersionUID = 7307578790788586699L;
17
    private final static String MESSAGE_FORMAT = "Exception creating band with type '%(type)'.";
18
    private final static String MESSAGE_KEY = "_CreateBandTypeException";
19

    
20
    /**
21
     * @param type
22
     * @param cause
23
     */
24
    public CreateBandTypeException(int type, Throwable cause) {
25
        super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID);
26
        setValue("type", new Integer(type));
27
    }
28

    
29
    /**
30
     * @param type
31
     */
32
    public CreateBandTypeException(int type) {
33
        this(type, null);
34
    }
35

    
36
}