public class ErrorReport extends Object
Modifier and Type | Field and Description |
---|---|
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
|
protected LocaleManager |
localeManager
The locale manager.
|
Constructor and Description |
---|
ErrorReport() |
Modifier and Type | Method and Description |
---|---|
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 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) |
protected Date date
protected String id
protected Throwable exception
protected CodeBlockTrace codeBlock
protected LocaleManager localeManager
protected static transient DateFormat dateFormat
public static ErrorReport getCurrentThreadError()
public Date getDate()
public void setDate(Date date)
public String getId()
public void setId(String id)
public Throwable getException()
public void setException(Throwable exception)
public CodeBlockTrace getCodeBlock()
public void setCodeBlock(CodeBlockTrace codeBlock)
public String printContext(int indent)
public String printExceptionTrace()
public static void appendIndent(StringBuffer out, int indent)
public boolean isBusinessAppError()
public boolean isTechnicalAppError()
protected String getUnexpectedErrorTitle()
protected String getUnexpectedErrorMessage()
public String printErrorTitle()
public String printErrorMessage()
public static void main(String[] args)
Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.