Class ExceptionHandler


  • public class ExceptionHandler
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void handleException​(org.odpi.openmetadata.frameworks.auditlog.AuditLog logger, java.lang.String className, java.lang.String methodName, java.lang.Exception error, org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageDefinition auditCodeMsg, org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition errorCodeMsg)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExceptionHandler

        public ExceptionHandler()
    • Method Detail

      • handleException

        public static void handleException​(org.odpi.openmetadata.frameworks.auditlog.AuditLog logger,
                                           java.lang.String className,
                                           java.lang.String methodName,
                                           java.lang.Exception error,
                                           org.odpi.openmetadata.frameworks.auditlog.messagesets.AuditLogMessageDefinition auditCodeMsg,
                                           org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition errorCodeMsg)
                                    throws AlreadyHandledException
        Parameters:
        logger - the audit logger
        className - the name of the class that caught the exception
        methodName - the name of the method that caught the exception
        error - the exception to be logged
        auditCodeMsg - the audit message
        errorCodeMsg - the error message
        Throws:
        AlreadyHandledException - an exception letting caller methods to know