Java Exception Print printException(Exception e)

Here you can find the source of printException(Exception e)

Description

print Exception

License

Open Source License

Declaration

public static void printException(Exception e) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static void printException(Exception e) {
        System.out.println("Exception caught! Exiting ..");
        System.out.println("error message: " + e.getMessage());
        e.printStackTrace();//from   w  ww  . j a  v a  2 s. c o  m
    }
}

Related

  1. printException(Exception e)
  2. printException(Exception e)
  3. printException(Exception e, String message)
  4. printException(String excption)