Add CustomException Class APIResponseException.java
Throwing one single exception when catching many different ones within the sendRequest() method of MyWaifuWrapper.javapull/5/head
parent
f075da7409
commit
6717c2cd8c
@ -0,0 +1,14 @@
|
|||||||
|
package org.goudham.me.exception;
|
||||||
|
|
||||||
|
|
||||||
|
import org.goudham.me.MyWaifuWrapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Thrown when {@link MyWaifuWrapper}
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class APIResponseException extends Throwable {
|
||||||
|
public APIResponseException(String errorMessage, Throwable error) {
|
||||||
|
super(errorMessage, error);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue