Statistics
| Revision:

gvsig-vectorediting / org.gvsig.vectorediting / trunk / org.gvsig.vectorediting / org.gvsig.vectorediting.lib / org.gvsig.vectorediting.lib.api / src / main / java / org / gvsig / vectorediting / lib / api / exceptions / VectorEditingException.java @ 60

History | View | Annotate | Download (2.2 KB)

1
/*
2
 * Copyright 2014 DiSiD Technologies S.L.L. All rights reserved.
3
 * 
4
 * Project  : DiSiD org.gvsig.vectorediting.lib.api 
5
 * SVN Id   : $Id$
6
 */
7
package org.gvsig.vectorediting.lib.api.exceptions;
8

    
9
import org.gvsig.tools.exception.BaseException;
10

    
11
/**
12
 * 
13
 * @author gvSIG team.
14
 *
15
 */
16
public class VectorEditingException extends BaseException {
17

    
18
  private static final long serialVersionUID = -3224623603201641463L;
19
  
20
  private static final String MESSAGE =
21
      "An error has been produced in the VectorEditing library";
22

    
23
  private static final String KEY = "_WasteException";
24
  
25
  /**
26
   * Constructor to be used in rare cases, usually you must create a new child
27
   * exception class for each case.
28
   * <strong>Don't use this constructor in child classes.</strong>
29
   */
30
  public VectorEditingException() {
31
      super(MESSAGE, KEY, serialVersionUID);
32
  }
33
  
34
  /**
35
   * Constructor to be used in rare cases, usually you must create a new child
36
   * exception class for each case.
37
   * <p>
38
   * <strong>Don't use this constructor in child classes.</strong>
39
   * </p>
40
   * 
41
   * @param cause
42
   *            the original cause of the exception
43
   */
44
  public VectorEditingException(Exception cause) {
45
      super(MESSAGE, cause, KEY, serialVersionUID);
46
  }
47
  
48
  /**
49
   * @see BaseException#BaseException(String, String, long).
50
   * @param message
51
   *            the default messageFormat to describe the exception
52
   * @param key
53
   *            the key to use to search a localized messageFormnata
54
   * @param code
55
   *            the unique code to identify the exception
56
   */
57
  protected VectorEditingException(String message, String key, long code) {
58
      super(message, key, code);
59
  }
60
  
61
  /**
62
   * @see BaseException#BaseException(String, Throwable, String, long).
63
   * @param message
64
   *            the default messageFormat to describe the exception
65
   * @param cause
66
   *            the original cause of the exception
67
   * @param key
68
   *            the key to use to search a localized messageFormnata
69
   * @param code
70
   *            the unique code to identify the exception
71
   */
72
  protected VectorEditingException(String message, Throwable cause,
73
      String key, long code) {
74
      super(message, cause, key, code);
75
  }
76

    
77
}