Class ExceptionToPngRenderer
- java.lang.Object
-
- org.opennms.netmgt.jasper.grafana.ExceptionToPngRenderer
-
public class ExceptionToPngRenderer extends Object
Utility class to rendering an exception as an image.- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description ExceptionToPngRenderer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
renderExceptionToPng(Exception e)
Render the given exception to an image.
-
-
-
Method Detail
-
renderExceptionToPng
public static byte[] renderExceptionToPng(Exception e)
Render the given exception to an image.- Parameters:
e
- exception- Returns:
- a byte array of a .png representing the given exception
- Throws:
IOException
- if an error occurs rendering the .png
-
-