fix bug https://github.com/AriaLyy/Aria/issues/702 优化异常提示
This commit is contained in:
@@ -17,20 +17,12 @@ package com.arialyy.aria.exception;
|
||||
|
||||
public class AriaException extends Exception {
|
||||
|
||||
private String tag;
|
||||
|
||||
public AriaException(String tag, String message) {
|
||||
public AriaException(String message) {
|
||||
super(message);
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public AriaException(String tag, String message, Exception e) {
|
||||
super(String.format("%s, %s\n%s", tag, message == null ? "" : message,
|
||||
public AriaException(String message, Exception e) {
|
||||
super(String.format("%s\n%s", message == null ? "" : message,
|
||||
e == null ? "" : e.getMessage()));
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
public String getTag() {
|
||||
return tag;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user