All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enterprisemath.utils.messaging.SystemMessenger Maven / Gradle / Ivy

Go to download

Collection of utility classes for large scale projects focusing on robust and testable code.

There is a newer version: 4.1.1
Show newest version
package com.enterprisemath.utils.messaging;

import java.util.Map;

/**
 * Defines functionality for system message.
 * This is designed for sending messages to the administrator.
 * Supports are standard message and various methods for sending errors.
 *
 * 

* Note: Adding functions to this interface will NOT be * considered as breaking binary compatibility. *

* * @author radek.hecl * */ public interface SystemMessenger { /** * Sends message. * * @param message message to send */ public void send(Message message); /** * Sends error message without exception. * * @param caption caption of the error * @param explanation message with error explanation */ public void sendError(String caption, String explanation); /** * Sends error message with exception. * * @param caption caption of the error * @param explanation message with error explanation * @param e error */ public void sendError(String caption, String explanation, Throwable e); /** * Sends error message with exception. * * @param caption caption of the error * @param explanation message with error explanation * @param exceptionDetails details about exception serialized to the map */ public void sendError(String caption, String explanation, Map exceptionDetails); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy