c4be075cf0aad44e1afafcf9b71ef705e6085825
[so.git] / common / src / main / java / org / onap / so / exceptions / MSOException.java
1 package org.onap.so.exceptions;
2
3
4 public class MSOException extends Exception{
5     /**
6      * 
7      */
8     private static final long serialVersionUID = 4563920496855255206L;
9     private Integer errorCode;
10
11     public MSOException(String msg){
12         super(msg);
13     }
14     
15     public MSOException (Throwable e) {
16         super(e);
17     }
18     
19     public MSOException (String msg, Throwable e) {
20         super (msg, e);
21     }
22     
23     public MSOException(String msg, int errorCode){
24         super(msg);
25         this.errorCode=errorCode;
26     }
27     
28     public MSOException(String msg, int errorCode, Throwable t){
29         super(msg,t);
30         this.errorCode=errorCode;
31     }
32     
33     public Integer getErrorCode(){
34         return errorCode;
35     }
36 }