Java Exception Message exceptionMessage(Object... strings)

Here you can find the source of exceptionMessage(Object... strings)

Description

exception Message

License

Open Source License

Declaration

public static String exceptionMessage(Object... strings) 

Method Source Code

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

public class Main {
    public static String exceptionMessage(Object... strings) {
        StringBuilder msg = new StringBuilder();
        msg.append(strings[0]).append(System.lineSeparator());
        msg.append("Additional exception info:").append(System.lineSeparator());
        for (int i = 1; i < strings.length; i++) {
            msg.append("\t").append(strings[i]).append(System.lineSeparator());
        }//w w  w .  j ava2s .  c o m
        msg.append("Stacktrace:");
        return msg.toString();
    }
}

Related

  1. exception(Throwable e)
  2. exception(Throwable t)
  3. exceptionMessage(Throwable e)
  4. exceptionSimpleDesc(final Exception e)
  5. exceptionStackTrace(Exception ex)