##### Coverage Report - com.ctrip.apollo.core.exception.AbstractBaseException

Classes in this File | Line Coverage | Branch Coverage | Complexity
AbstractBaseException |
0% | 0/12
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.apollo.core.exception;
2 |  |
3 |  |
     public abstract class AbstractBaseException extends RuntimeException{
4 |  |
5 |  |
       /**
6 |  |
        *
7 |  |
        */
8 |  |
       private static final long serialVersionUID = -1713129594004951820L;
9 |  |
10 |  |
       private String errorCode;
11 |  |
12 | 0 |
       public AbstractBaseException(){
13 |  |
14 | 0 |
       }
15 |  |
16 |  |
       public AbstractBaseException(String str){
17 | 0 |
         super(str);
18 | 0 |
       }
19 |  |
20 |  |
       public AbstractBaseException(String str, Exception e){
21 | 0 |
         super(str,e);
22 | 0 |
       }
23 |  |
24 |  |
       public AbstractBaseException(String str, String errorCode){
25 | 0 |
         super(str);
26 | 0 |
         this.setErrorCode(errorCode);
27 | 0 |
       }
28 |  |
29 |  |
       public String getErrorCode() {
30 | 0 |
         return errorCode;
31 |  |
       }
32 |  |
33 |  |
       public void setErrorCode(String errorCode) {
34 | 0 |
         this.errorCode = errorCode;
35 | 0 |
       }
36 |  |
     }