nl.lxtreme.ols.util.swing.component
Class JErrorDialog.IncidentInfo

java.lang.Object
  extended by nl.lxtreme.ols.util.swing.component.JErrorDialog.IncidentInfo
All Implemented Interfaces:
Serializable
Enclosing class:
JErrorDialog

public static class JErrorDialog.IncidentInfo
extends Object
implements Serializable

Provides a container with information about the incident.

See Also:
Serialized Form

Constructor Summary
JErrorDialog.IncidentInfo(String aHeader, String aBasicErrorMessage, String aDetailedErrorMessage)
          Creates a new IncidentInfo instance.
JErrorDialog.IncidentInfo(String aHeader, String aBasicErrorMessage, String aDetailedErrorMessage, Throwable aErrorException)
          Main constructor that adds all the information to IncidentInfo
JErrorDialog.IncidentInfo(String aHeader, Throwable aErrorException)
          Creates a new IncidentInfo instance.
 
Method Summary
 String getBasicErrorMessage()
          Get the basic error description
 String getDetailedErrorMessage()
          Get the detailed error description
 Throwable getErrorException()
          Get an exception that contains some additional information about the error if provided.
 String getHeader()
          Get the current header string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JErrorDialog.IncidentInfo

public JErrorDialog.IncidentInfo(String aHeader,
                                 String aBasicErrorMessage,
                                 String aDetailedErrorMessage)
Creates a new IncidentInfo instance.

Parameters:
aHeader - the header of this incident;
aBasicErrorMessage - the short/human readable version of this incident;
aDetailedErrorMessage - the detailed version of this incident (stack trace).

JErrorDialog.IncidentInfo

public JErrorDialog.IncidentInfo(String aHeader,
                                 String aBasicErrorMessage,
                                 String aDetailedErrorMessage,
                                 Throwable aErrorException)
Main constructor that adds all the information to IncidentInfo

Parameters:
aHeader - the header of this incident;
aBasicErrorMessage - the short/human readable version of this incident;
aDetailedErrorMessage - the detailed version of this incident (stack trace);
aErrorException - the exception to show in this incident.

JErrorDialog.IncidentInfo

public JErrorDialog.IncidentInfo(String aHeader,
                                 Throwable aErrorException)
Creates a new IncidentInfo instance.

Parameters:
aHeader - the header of this incident;
aErrorException - the exception to show in this incident.
Method Detail

getBasicErrorMessage

public String getBasicErrorMessage()
Get the basic error description

Returns:
basic error description

getDetailedErrorMessage

public String getDetailedErrorMessage()
Get the detailed error description

Returns:
detailed description

getErrorException

public Throwable getErrorException()
Get an exception that contains some additional information about the error if provided.

Returns:
exception or null if no exception provided

getHeader

public String getHeader()
Get the current header string

Returns:
header string


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.