forked from alibaba/COLA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pasion
committed
Sep 26, 2022
1 parent
7ed540d
commit d30b55c
Showing
3 changed files
with
88 additions
and
21 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...ponent-extension-starter/src/main/java/com/alibaba/cola/extension/ExtensionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.alibaba.cola.extension; | ||
|
||
/** | ||
* 扩展点初始化或者查找失败时,使用次异常 | ||
* <p> | ||
* 扩展点初始化或者查找失败时,使用次异常 | ||
* <p> | ||
* | ||
* @author ***[email protected] | ||
* @version 1.0.0 | ||
* @since 1.0.0 2022/9/26 | ||
*/ | ||
public class ExtensionException extends RuntimeException { | ||
|
||
private String errCode; | ||
|
||
public ExtensionException(String errMessage) { | ||
super(errMessage); | ||
} | ||
|
||
public ExtensionException(String errCode, String errMessage) { | ||
super(errMessage); | ||
this.errCode = errCode; | ||
} | ||
|
||
public ExtensionException(String errMessage, Throwable e) { | ||
super(errMessage, e); | ||
} | ||
|
||
public ExtensionException(String errCode, String errMessage, Throwable e) { | ||
super(errMessage, e); | ||
this.errCode = errCode; | ||
} | ||
|
||
public String getErrCode() { | ||
return errCode; | ||
} | ||
|
||
public void setErrCode(String errCode) { | ||
this.errCode = errCode; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters