Java Exception Print printException(Exception e)

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

Description

Prints out the message of the exception.

License

Open Source License

Parameter

Parameter Description
e a parameter

Declaration

public static void printException(Exception e) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from   w ww  .  j  a va2s .  co m
     * Prints out the message of the exception.
     *
     * @param e
     */
    public static void printException(Exception e) {
        System.err.println(e.getLocalizedMessage());
    }
}

Related

  1. printException(Exception e)
  2. printException(Exception e)
  3. printException(Exception e, String message)
  4. printException(String excption)
  5. printException(String prefix, Exception e)
  6. PrintException(StringBuilder Str, boolean HTML, Throwable T, boolean PrintCauseToo)