Class ExceptionToPngRenderer


  • public class ExceptionToPngRenderer
    extends Object
    Utility class to rendering an exception as an image.
    Author:
    jwhite
    • Constructor Detail

      • ExceptionToPngRenderer

        public ExceptionToPngRenderer()
    • 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