View Javadoc
1   package org.duniter.core.exception;
2   
3   /*
4    * #%L
5    * Duniter4j :: Core API
6    * %%
7    * Copyright (C) 2014 - 2015 EIS
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU General Public License as
11   * published by the Free Software Foundation, either version 3 of the 
12   * License, or (at your option) any later version.
13   * 
14   * This program is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   * GNU General Public License for more details.
18   * 
19   * You should have received a copy of the GNU General Public 
20   * License along with this program.  If not, see
21   * <http://www.gnu.org/licenses/gpl-3.0.html>.
22   * #L%
23   */
24  
25  
26  /**
27   * A uCoin technical exception
28   * @author Benoit Lavenier <benoit.lavenier@e-is.pro>
29   * @since 
30   *
31   */
32  public class TechnicalException extends RuntimeException{
33  
34      private static final long serialVersionUID = -6715624222174163366L;
35  
36      private int code = -1;
37  
38      public int getCode() {
39          return code;
40      }
41  
42      public void setCode(int code) {
43          this.code = code;
44      }
45  
46      public TechnicalException() {
47          super();
48      }
49  
50      public TechnicalException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
51          super(message, cause, enableSuppression, writableStackTrace);
52      }
53  
54      public TechnicalException(String message, Throwable cause) {
55          super(message, cause);
56      }
57  
58      public TechnicalException(String message) {
59          super(message);
60      }
61  
62      public TechnicalException(Throwable cause) {
63          super(cause);
64      }
65      
66  }