public class DatabaseErrorHelper extends Object
| Constructor and Description |
|---|
DatabaseErrorHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
print(String errorMessage)
Return the error as plain text
|
static String |
print(Throwable t)
Return the error as plain text
|
static String |
toJson(String errorMessage)
Serialize the error as JSON
|
static String |
toJson(Throwable t)
Serialize the error as JSON
|
public static String toJson(Throwable t)
t - the errorpublic static String toJson(String errorMessage)
errorMessage - the error messagepublic static String print(Throwable t)
t - the errorCopyright © 2010–2018 Eclipse Foundation. All rights reserved.