OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HeavyAIExceptionText.java
Go to the documentation of this file.
1 package ai.heavy.jdbc;
2 
3 public class HeavyAIExceptionText {
4  static String getExceptionDetail(Exception ex) {
5  if (ex.getStackTrace().length < 1) {
6  return "Error in stack trace processing";
7  }
8  StackTraceElement sE = ex.getStackTrace()[0];
9  return "[" + sE.getFileName() + ":" + sE.getMethodName() + ":" + sE.getLineNumber()
10  + ":" + ex.toString() + "]";
11  }
12 }
static String getExceptionDetail(Exception ex)