org.jdesktop.swingx
Class IncidentInfo

java.lang.Object
  extended by org.jdesktop.swingx.IncidentInfo

public class IncidentInfo
extends java.lang.Object


Constructor Summary
IncidentInfo(java.lang.String header, java.lang.String basicErrorMessage, java.lang.String detailedErrorMessage)
          Constructor that creates IncidentInfo with all the provided descriptions
IncidentInfo(java.lang.String header, java.lang.String basicErrorMessage, java.lang.String detailedErrorMessage, java.lang.Throwable errorException)
          Main constructor that adds all the information to IncidentInfo
IncidentInfo(java.lang.String header, java.lang.Throwable errorException)
          Constructor that creates IncidentInfo retreiving all the information from the provided Throwable
 
Method Summary
 java.lang.String getBasicErrorMessage()
          Get the basic error description
 java.lang.String getDetailedErrorMessage()
          Get the detailed error description
 java.lang.Throwable getErrorException()
          Get an exception that contains some additional information about the error if provided.
 java.lang.String getHeader()
          Get the current header string
 void setBasicErrorMessage(java.lang.String basicErrorMessage)
          Set the current basic error description
 void setDetailedErrorMessage(java.lang.String detailedErrorMessage)
          Set the detailed description for this error
 void setErrorException(java.lang.Throwable errorException)
          Set the exception that may contain additional information about the error.
 void setHeader(java.lang.String header)
          Set the current header string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncidentInfo

public IncidentInfo(java.lang.String header,
                    java.lang.String basicErrorMessage,
                    java.lang.String detailedErrorMessage,
                    java.lang.Throwable errorException)
Main constructor that adds all the information to IncidentInfo

Parameters:
header - Header that will be used as the quick reference for the incident (e.g. title for a dialog or subject for the incident message)
basicErrorMessage - Short description of the given problem
detailedErrorMessage - Full description of the problem
errorException - Throwable that can be used as a source for additional information such as call stack, thread name, etc.

IncidentInfo

public IncidentInfo(java.lang.String header,
                    java.lang.String basicErrorMessage,
                    java.lang.String detailedErrorMessage)
Constructor that creates IncidentInfo with all the provided descriptions

Parameters:
header - Header that will be used as the quick reference for the incident (e.g. title for a dialog or subject for the incident message)
basicErrorMessage - Short description of the given problem
detailedErrorMessage - Full description og the problem

IncidentInfo

public IncidentInfo(java.lang.String header,
                    java.lang.Throwable errorException)
Constructor that creates IncidentInfo retreiving all the information from the provided Throwable

Parameters:
header - Header that will be used as the quick reference for the incident (e.g. title for a dialog or subject for the incident message)
errorException - Throwable that can be used as a main source of information about the incident
Method Detail

getHeader

public java.lang.String getHeader()
Get the current header string

Returns:
header string

setHeader

public void setHeader(java.lang.String header)
Set the current header string

Parameters:
header -

getBasicErrorMessage

public java.lang.String getBasicErrorMessage()
Get the basic error description

Returns:
basic error description

setBasicErrorMessage

public void setBasicErrorMessage(java.lang.String basicErrorMessage)
Set the current basic error description

Parameters:
basicErrorMessage - new basic error description

getDetailedErrorMessage

public java.lang.String getDetailedErrorMessage()
Get the detailed error description

Returns:
detailed description

setDetailedErrorMessage

public void setDetailedErrorMessage(java.lang.String detailedErrorMessage)
Set the detailed description for this error

Parameters:
detailedErrorMessage - new detailed description

getErrorException

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

Returns:
exception or null if no exception provided

setErrorException

public void setErrorException(java.lang.Throwable errorException)
Set the exception that may contain additional information about the error.

Parameters:
errorException - new Throwable ot null if there is no Throwable related to this error