Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #45 from nitu2003/master
Browse files Browse the repository at this point in the history
[O] 指令抛出异常 (close #36)
  • Loading branch information
hykilpikonna authored Jun 26, 2020
2 parents 2d714c9 + af3ad53 commit b21b64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/cc/moecraft/icq/PicqConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ public class PicqConfig
/** 是否输出 Init 日志 */
private boolean logInit = true;

/** 执行指令时抛出异常处理 */
private Consumer<Throwable> commandErrorHandler = (ex) -> {};
/** 执行指令时抛出异常处理(可以通过把 {@code commandErrorHandler} 设置为 {@code (ex)->{}} 来关闭异常抛出) */
private Consumer<Throwable> commandErrorHandler = Throwable::printStackTrace; // 抛出异常,不憋着w

// 方法 | Methods

Expand Down

0 comments on commit b21b64e

Please sign in to comment.