Here you can find the source of getErrorMessage(Exception ex)
Parameter | Description |
---|---|
data | a parameter |
resp | a parameter |
Parameter | Description |
---|---|
IOException | an exception |
public static String getErrorMessage(Exception ex) throws IOException
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.io.IOException; public class Main { /**/*from ww w .ja v a2 s . c o m*/ * Utility method to send the error back to UI * @param data * @param resp * @throws IOException */ public static String getErrorMessage(Exception ex) throws IOException { return "Error:" + ex.toString(); } }