Class ErrorLogger

java.lang.Object
ActiverseUtils.ErrorLogger

public final class ErrorLogger extends Object
ErrorLogger - Centralized ACEHS formatting and logging utility. Ensures consistent error output across ActiverseEngine and ActiverseUtils.
Version:
1.4.2
Author:
Knivier
  • 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 code
      methodSignature - Method or location identifier
      message - 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 code
      errorType - Error taxonomy code
      methodSignature - Method or location identifier
      message - Human-readable error details
      connFileCode - Linked/connected source code
      connErrorType - 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 code
      errorType - Error taxonomy code
      methodSignature - Method or location identifier
      message - 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 code
      errorType - Error taxonomy code
      methodSignature - Method or location identifier
      e - 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 code
      errorType - Error taxonomy code
      methodSignature - Method or location identifier
      e - Exception instance to format
      connFileCode - Linked/connected source code
      connErrorType - 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 code
      errorType - Error taxonomy code
      methodSignature - Method or location identifier
      message - 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 code
      errorType - Error taxonomy code
      methodSignature - Method or location identifier
      message - Human-readable error details
      connFileCode - Linked/connected source code, nullable
      connErrorType - Linked/connected error taxonomy code, nullable
      Returns:
      Formatted ACEHS message