Skip to content

Commit

Permalink
modified
Browse files Browse the repository at this point in the history
  • Loading branch information
yongjingchuan authored and yongjingchuan committed Aug 20, 2020
1 parent 3ba99c0 commit 5496e1d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/test/java/com/cy/generate/exception/ExceptionTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.cy.generate.exception;


import com.cy.generate.common.ErrorCode;
import com.cy.generate.common.exception.CommonException;

/**
* @Description:
* @Author: YongJingChuan
* @Date: 2020/8/20 16:29
*/
public class ExceptionTest {

public static void main(String[] args) {
try {
throw new CommonException(new RuntimeException("固定异常"), ErrorCode.ERROR);
} catch (CommonException e) {
System.out.println(e.getErrorCode());
}

}
}

0 comments on commit 5496e1d

Please sign in to comment.