From 2aaba3527f1a72f0401168ffb6214dcd925d9233 Mon Sep 17 00:00:00 2001 From: Hammy Date: Sun, 6 Jun 2021 22:19:27 +0100 Subject: [PATCH] Add new exception class --- .../goudham/me/exception/APIMapperException.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/java/org/goudham/me/exception/APIMapperException.java diff --git a/src/main/java/org/goudham/me/exception/APIMapperException.java b/src/main/java/org/goudham/me/exception/APIMapperException.java new file mode 100644 index 0000000..c016e9f --- /dev/null +++ b/src/main/java/org/goudham/me/exception/APIMapperException.java @@ -0,0 +1,15 @@ +package org.goudham.me.exception; + + +import org.goudham.me.MyWaifuWrapper; +import org.goudham.me.Response; + +/** + * Thrown when {@link MyWaifuWrapper} fails to unmarshal json into Java POJO's ({@link Response#getEntity()}) + * + */ +public class APIMapperException extends Throwable { + public APIMapperException(String errorMessage, Throwable error) { + super(errorMessage, error); + } +}