Class ExceptionToPngRenderer


  • public class ExceptionToPngRenderer
    extends java.lang.Object
    Utility class to rendering an exception as an image.
    Author:
    jwhite
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] renderExceptionToPng​(java.lang.Exception e)
      Render the given exception to an image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExceptionToPngRenderer

        public ExceptionToPngRenderer()
    • Method Detail

      • renderExceptionToPng

        public static byte[] renderExceptionToPng​(java.lang.Exception e)
        Render the given exception to an image.
        Parameters:
        e - exception
        Returns:
        a byte array of a .png representing the given exception
        Throws:
        java.io.IOException - if an error occurs rendering the .png