public abstract class PageExceptionImpl extends PageException
Constructor and Description |
---|
PageExceptionImpl(String message,
String type)
Class Constructor
|
PageExceptionImpl(String message,
String type,
String customType)
Class Constructor
|
PageExceptionImpl(Throwable e,
String type)
Class Constructor
|
PageExceptionImpl(Throwable e,
String type,
String customType)
Class Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addContext(PageSource pr,
int line,
int column,
StackTraceElement element)
add a template to the context of the error
|
Struct |
getAddional() |
Struct |
getAdditional() |
Struct |
getCatchBlock() |
CatchBlock |
getCatchBlock(Config config)
return detailed catch block of the error
|
Struct |
getCatchBlock(PageContext pc)
return detailed catch block of the error
|
String |
getCustomTypeAsString()
Error custom type as String
|
String |
getDetail()
return detailed error message
|
Struct |
getErrorBlock(PageContext pc,
ErrorPage ep)
return detailed error block of the error
|
String |
getErrorCode()
Error Code
|
boolean |
getExposeMessage() |
String |
getExtendedInfo()
return extended info to the error
|
String |
getLine(Config config) |
int |
getPageDeep() |
Throwable |
getRootCause() |
StackTraceElement[] |
getStackTrace() |
String |
getStackTraceAsString()
returns the java stracktrace as a String
|
String |
getStackTraceAsString(PageContext pc) |
Array |
getTagContext(Config config) |
static Array |
getTagContext(Config config,
StackTraceElement[] traces) |
int |
getTracePointer() |
String |
getType() |
String |
getTypeAsString()
Error type as String
|
void |
printStackTrace() |
void |
printStackTrace(PageContext pc) |
void |
printStackTrace(PrintStream s) |
void |
printStackTrace(PrintStream s,
PageContext pc) |
void |
printStackTrace(PrintWriter s) |
void |
printStackTrace(PrintWriter s,
PageContext pc) |
void |
setAdditional(Collection.Key key,
Object value)
set a additional key value
|
void |
setDetail(String detail)
sets detailed error message
|
void |
setErrorCode(String errorCode)
sets the Error Code
|
void |
setExposeMessage(boolean exposeMessage) |
void |
setExtendedInfo(String extendedInfo)
sets extended info to the error
|
void |
setTracePointer(int tracePointer) |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML
|
static String |
toString(PageContext pc,
StackTraceElement trace) |
boolean |
typeEqual(String type)
compare error type as String
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, setStackTrace, toString
public PageExceptionImpl(String message, String type)
message
- Exception Messagetype
- Type as Stringpublic PageExceptionImpl(String message, String type, String customType)
message
- Exception Messagetype
- Type as StringcustomType
- CUstom Type as Stringpublic PageExceptionImpl(Throwable e, String type)
e
- exceptiontype
- Type as Stringpublic PageExceptionImpl(Throwable e, String type, String customType)
e
- exceptiontype
- Type as StringcustomType
- CUstom Type as Stringpublic String getDetail()
IPageException
public String getErrorCode()
IPageException
public String getExtendedInfo()
IPageException
public void setDetail(String detail)
IPageException
public void setErrorCode(String errorCode)
IPageException
public void setExtendedInfo(String extendedInfo)
IPageException
public final Struct getCatchBlock()
public final Struct getCatchBlock(PageContext pc)
IPageException
public CatchBlock getCatchBlock(Config config)
IPageException
public Array getTagContext(Config config)
public static Array getTagContext(Config config, StackTraceElement[] traces)
public int getPageDeep()
public Struct getErrorBlock(PageContext pc, ErrorPage ep)
IPageException
pc
- page context of the requestep
- error pagepublic void addContext(PageSource pr, int line, int column, StackTraceElement element)
IPageException
pr
- new template contextline
- line of the errorcolumn
- column of the errorpublic DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
public String getStackTraceAsString()
IPageException
public String getStackTraceAsString(PageContext pc)
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PageContext pc)
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
public void printStackTrace(PrintStream s, PageContext pc)
public void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter s, PageContext pc)
public static String toString(PageContext pc, StackTraceElement trace)
public void setAdditional(Collection.Key key, Object value)
key
- value
- public Throwable getRootCause()
getRootCause
in class javax.servlet.jsp.JspException
public int getTracePointer()
public void setTracePointer(int tracePointer)
tracePointer
- The tracePointer to set.public boolean typeEqual(String type)
IPageException
type
- other error typepublic String getTypeAsString()
IPageException
public String getCustomTypeAsString()
IPageException
public Struct getAdditional()
public Struct getAddional()
public StackTraceElement[] getStackTrace()
getStackTrace
in class Throwable
public void setExposeMessage(boolean exposeMessage)
public boolean getExposeMessage()
Copyright © 2015 Lucee