1 package com.loribel.commons.abstraction; 2 3 import javax.swing.*; 4 5 /*** 6 * Abstraction to represent an error to use into GUI for example. 7 * 8 * @author Gregory Borelli 9 */ 10 public interface GB_ErrorReport 11 { 12 String getDetails(); 13 14 String getErrorCode(); 15 16 Throwable getException(); 17 18 String getMessage(); 19 20 String getTitle(); 21 22 String getSource(); 23 24 /*** 25 * Use the JOptionPane constants. 26 */ 27 int getType(); 28 29 boolean isDetailsAvailable(); 30 31 public static abstract class TYPE 32 { 33 public final static int ERROR = JOptionPane.ERROR_MESSAGE; 34 public final static int INFORMATION = JOptionPane.INFORMATION_MESSAGE; 35 public final static int WARNING = JOptionPane.WARNING_MESSAGE; 36 } 37 }