Browse Source

add parse exception constructor

pull/54/head
Thodoris1999 6 years ago
parent
commit
fff52d1ec6
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/utils/parsing/NewParseTask.java
  2. 4
      app/src/main/java/gr/thmmy/mthmmy/utils/parsing/ParseException.java

2
app/src/main/java/gr/thmmy/mthmmy/utils/parsing/NewParseTask.java

@ -13,7 +13,7 @@ public abstract class NewParseTask<T> extends NetworkTask<T> {
try {
return parse(document);
} catch (Exception e) {
throw new ParseException("Parse failed.");
throw new ParseException("Parse failed.", e);
}
}

4
app/src/main/java/gr/thmmy/mthmmy/utils/parsing/ParseException.java

@ -10,4 +10,8 @@ public class ParseException extends Exception {
{
super(message);
}
public ParseException(String message, Throwable cause) {
super(message, cause);
}
}

Loading…
Cancel
Save