Java Exception to String getExceptionName(IOException ex)

Here you can find the source of getExceptionName(IOException ex)

Description

get Exception Name

License

Open Source License

Declaration

public static String getExceptionName(IOException ex) 

Method Source Code

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

import java.io.IOException;

public class Main {
    public static String getExceptionName(IOException ex) {
        return ex.getClass().getSimpleName();
    }//from www .  j a  v a2s  .c  o  m
}

Related

  1. getExceptionDetails(Exception e)
  2. getExceptionMessage(Exception e)
  3. getExceptionMessage(Exception ex)
  4. getExceptionMessage(Exception ex)
  5. getExceptionMsg(Exception ex)
  6. getExceptionStackTrace(Exception exception)
  7. getExceptionStackTraceAsString(final Exception exception)