You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2025/07/29 09:59:40 UTC
(empire-db) branch master updated: EMPIREDB-456 InternalException: message fix
This is an automated email from the ASF dual-hosted git repository.
doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git
The following commit(s) were added to refs/heads/master by this push:
new df5970d7 EMPIREDB-456 InternalException: message fix
df5970d7 is described below
commit df5970d7c56c77b705e86104b8d30c12b2e28490
Author: Rainer Döbele <do...@apache.org>
AuthorDate: Tue Jul 29 11:59:36 2025 +0200
EMPIREDB-456
InternalException: message fix
---
.../main/java/org/apache/empire/exceptions/InternalException.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/empire-db/src/main/java/org/apache/empire/exceptions/InternalException.java b/empire-db/src/main/java/org/apache/empire/exceptions/InternalException.java
index 38e1256d..65860219 100644
--- a/empire-db/src/main/java/org/apache/empire/exceptions/InternalException.java
+++ b/empire-db/src/main/java/org/apache/empire/exceptions/InternalException.java
@@ -29,14 +29,12 @@ public class InternalException extends EmpireException
// Logger
private static final Logger log = LoggerFactory.getLogger(InternalException.class);
- public static final ErrorType errorType = new ErrorType("error.exception", "An Exception of type {0} occurred.\n-->Message is: {1}\n-->at Position: {2}");
+ public static final ErrorType errorType = new ErrorType("error.exception", "An exception of type \"{0}\" occurred.\n-->The message is: {1}\n-->at Position: {2}");
private static String[] paramsFromThrowable(final Throwable exptn)
{
// Exception
- String type = exptn.getClass().getName();
- if (type.startsWith("java.lang."))
- type = type.substring("java.lang.".length());
+ String type = exptn.getClass().getSimpleName();
// The message
String msg = exptn.getMessage();
// Prepare stack trace