Skip to content

Instantly share code, notes, and snippets.

@ggluta
Created July 4, 2019 08:53
Show Gist options
  • Save ggluta/b6abfa48c5353dfab964027f074f2097 to your computer and use it in GitHub Desktop.
Save ggluta/b6abfa48c5353dfab964027f074f2097 to your computer and use it in GitHub Desktop.
A wrapper for exceptions occuring while converting to JSON (see JsonConversion class)
package nl.abnamro.ignition.api.common.util;
/**
*
*
* A wrapper for exceptions occuring while converting to JSON
*
*
*/
public final class JsonConversionException extends RuntimeException {
/**
* Handles all exceptions occurred while converting to JSON
* @param message : custom message based on exception
* @param throwable: exception from parent class
*/
public JsonConversionException(String message,Throwable throwable) {
super(message,throwable);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment