Dashboard Builder Commons 6.0.0.Beta1

org.jboss.dashboard.error
Class ErrorReport

java.lang.Object
  extended by org.jboss.dashboard.factory.BasicFactoryElement
      extended by org.jboss.dashboard.error.ErrorReport
All Implemented Interfaces:
Serializable, FactoryLifecycle

public class ErrorReport
extends BasicFactoryElement

An error report.

See Also:
Serialized Form

Field Summary
protected  CodeBlockTrace codeBlock
          The code block where the exception occurs.
protected  Date date
          The error date
protected static DateFormat dateFormat
           
protected  Throwable exception
          The error itself
protected  String id
          The error unique identifier
 
Constructor Summary
ErrorReport()
           
 
Method Summary
static void appendIndent(StringBuffer out, int indent)
           
 CodeBlockTrace getCodeBlock()
           
static ErrorReport getCurrentThreadError()
          Get the last error happened within the current thread (if any).
 Date getDate()
           
 Throwable getException()
           
 String getId()
           
protected  Throwable getRootCause(Throwable t)
           
 Throwable getRootException()
           
protected  String getUnexpectedErrorMessage()
           
protected  String getUnexpectedErrorTitle()
           
 boolean isBusinessAppError()
           
 boolean isTechnicalAppError()
           
static void main(String[] args)
           
 String printContext(int indent)
           
 String printErrorMessage()
           
 String printErrorTitle()
           
 String printExceptionTrace()
           
 void setCodeBlock(CodeBlockTrace codeBlock)
           
 void setDate(Date date)
           
 void setException(Throwable exception)
           
 void setId(String id)
           
 
Methods inherited from class org.jboss.dashboard.factory.BasicFactoryElement
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

protected Date date
The error date


id

protected String id
The error unique identifier


exception

protected Throwable exception
The error itself


codeBlock

protected CodeBlockTrace codeBlock
The code block where the exception occurs.


dateFormat

protected static transient DateFormat dateFormat
Constructor Detail

ErrorReport

public ErrorReport()
Method Detail

getCurrentThreadError

public static ErrorReport getCurrentThreadError()
Get the last error happened within the current thread (if any).


getDate

public Date getDate()

setDate

public void setDate(Date date)

getId

public String getId()

setId

public void setId(String id)

getException

public Throwable getException()

getRootException

public Throwable getRootException()

getRootCause

protected Throwable getRootCause(Throwable t)

setException

public void setException(Throwable exception)

getCodeBlock

public CodeBlockTrace getCodeBlock()

setCodeBlock

public void setCodeBlock(CodeBlockTrace codeBlock)

printContext

public String printContext(int indent)

printExceptionTrace

public String printExceptionTrace()

appendIndent

public static void appendIndent(StringBuffer out,
                                int indent)

isBusinessAppError

public boolean isBusinessAppError()

isTechnicalAppError

public boolean isTechnicalAppError()

getUnexpectedErrorTitle

protected String getUnexpectedErrorTitle()

getUnexpectedErrorMessage

protected String getUnexpectedErrorMessage()

printErrorTitle

public String printErrorTitle()

printErrorMessage

public String printErrorMessage()

main

public static void main(String[] args)

Dashboard Builder Commons 6.0.0.Beta1

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.