Statistics
| Revision:

svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.impl / src / main / java / org / gvsig / fmap / dal / raster / impl / exceptions / AddingBandsException.java @ 43803

History | View | Annotate | Download (994 Bytes)

1
package org.gvsig.fmap.dal.raster.impl.exceptions;
2

    
3
import org.apache.commons.lang3.StringUtils;
4

    
5
import org.gvsig.fmap.dal.exception.DataException;
6

    
7

    
8
/**
9
 * @author fdiaz
10
 *
11
 */
12
public class AddingBandsException extends DataException {
13

    
14
    /**
15
     *
16
     */
17
    private static final long serialVersionUID = -3839070588098037446L;
18

    
19
    private final static String MESSAGE_FORMAT = "Exception adding bands from '%(sourceStore)' to '%(targetStore)': '%(because)'";
20
    private final static String MESSAGE_KEY = "_ServerExplorerAddException";
21

    
22
    /**
23
     * @param sourceStore
24
     * @param targetStore
25
     * @param because
26
     * @param cause
27
     */
28
    public AddingBandsException(String sourceStore, String targetStore, String because, Throwable cause) {
29
        super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID);
30
        setValue("sourceStore", sourceStore);
31
        setValue("targetStore", targetStore);
32
        setValue("because", StringUtils.uncapitalize(because));
33
    }
34

    
35
}