Class ErrorLogger
java.lang.Object
ActiverseUtils.ErrorLogger
ErrorLogger - Centralized ACEHS formatting and logging utility.
Ensures consistent error output across ActiverseEngine and ActiverseUtils.
- Version:
- 1.4.2
- Author:
- Knivier
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringBuilds an ACEHS-formatted message without connected-code metadata.static Stringformat(String fileCode, String errorType, String methodSignature, String message, String connFileCode, String connErrorType) Builds a full ACEHS-formatted message.static voidLogs a formatted ACEHS message to standard output.static voidreport(String fileCode, String errorType, String methodSignature, String message, String connFileCode, String connErrorType) Logs a formatted ACEHS message with a connection target descriptor.static voidLogs a formatted ACEHS message to standard error.static voidreportException(String fileCode, String errorType, String methodSignature, Exception e) Logs an exception in ACEHS format to standard output.static voidreportException(String fileCode, String errorType, String methodSignature, Exception e, String connFileCode, String connErrorType) Logs an exception in ACEHS format including a connected code descriptor.
-
Method Details
-
report
public static void report(String fileCode, String errorType, String methodSignature, String message) Logs a formatted ACEHS message to standard output.- Parameters:
fileCode- Source/system code (e.g. module identifier)errorType- Error taxonomy codemethodSignature- Method or location identifiermessage- Human-readable error details
-
report
public static void report(String fileCode, String errorType, String methodSignature, String message, String connFileCode, String connErrorType) Logs a formatted ACEHS message with a connection target descriptor.- Parameters:
fileCode- Source/system codeerrorType- Error taxonomy codemethodSignature- Method or location identifiermessage- Human-readable error detailsconnFileCode- Linked/connected source codeconnErrorType- Linked/connected error taxonomy code
-
reportErr
public static void reportErr(String fileCode, String errorType, String methodSignature, String message) Logs a formatted ACEHS message to standard error.- Parameters:
fileCode- Source/system codeerrorType- Error taxonomy codemethodSignature- Method or location identifiermessage- Human-readable error details
-
reportException
public static void reportException(String fileCode, String errorType, String methodSignature, Exception e) Logs an exception in ACEHS format to standard output.- Parameters:
fileCode- Source/system codeerrorType- Error taxonomy codemethodSignature- Method or location identifiere- Exception instance to format
-
reportException
public static void reportException(String fileCode, String errorType, String methodSignature, Exception e, String connFileCode, String connErrorType) Logs an exception in ACEHS format including a connected code descriptor.- Parameters:
fileCode- Source/system codeerrorType- Error taxonomy codemethodSignature- Method or location identifiere- Exception instance to formatconnFileCode- Linked/connected source codeconnErrorType- Linked/connected error taxonomy code
-
format
public static String format(String fileCode, String errorType, String methodSignature, String message) Builds an ACEHS-formatted message without connected-code metadata.- Parameters:
fileCode- Source/system codeerrorType- Error taxonomy codemethodSignature- Method or location identifiermessage- Human-readable error details- Returns:
- Formatted ACEHS message
-
format
public static String format(String fileCode, String errorType, String methodSignature, String message, String connFileCode, String connErrorType) Builds a full ACEHS-formatted message.- Parameters:
fileCode- Source/system codeerrorType- Error taxonomy codemethodSignature- Method or location identifiermessage- Human-readable error detailsconnFileCode- Linked/connected source code, nullableconnErrorType- Linked/connected error taxonomy code, nullable- Returns:
- Formatted ACEHS message
-