1 package com.loribel.commons.abstraction;
2
3 /***
4 * Catchable manager.
5 *
6 * @author Gregory Borelli
7 */
8 public interface GB_ErrorMgr
9 {
10 /***
11 * Build error report
12 * @param a_type if -1, use default (see GB_ErrorReport.TYPE0
13 * @param a_title if null, use default
14 * @param a_message null accepted
15 * @param a_throwable null accepted
16 */
17 GB_ErrorReport buildReport(
18 Object a_source,
19 int a_type,
20 String a_title,
21 String a_message,
22 Throwable a_throwable);
23
24 /***
25 * Permet de faire un rapport de l'erreur.
26 * Retourne le message d'information.
27 */
28 String reportError(
29 GB_ErrorReport a_report);
30
31 /***
32 * Returns true if report error is available.
33 */
34 boolean isReportErrorAvailable();
35
36 }