EhException supports cause now
This commit is contained in:
1 parent
ced2139703
commit
cc9205700c
2 files changed
+9
No files matched your search
@@ -21,4 +21,8 @@ public class EhException extends Exception {
|
||||
public EhException(String detailMessage) {
|
||||
super(detailMessage);
|
||||
}
|
||||
|
||||
public EhException(String detailMessage, Throwable cause) {
|
||||
super(detailMessage, cause);
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,11 @@ public class ParseException extends EhException {
|
||||
mBody = body;
|
||||
}
|
||||
|
||||
public ParseException(String detailMessage, String body, Throwable cause) {
|
||||
super(detailMessage, cause);
|
||||
mBody = body;
|
||||
}
|
||||
|
||||
public String getBody() {
|
||||
return mBody;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user