public final class PageServletException extends javax.servlet.ServletException implements IPageException, PageExceptionBox
Constructor and Description |
---|
PageServletException(PageException pe)
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
void |
addContext(PageSource template,
int line,
int column,
java.lang.StackTraceElement ste)
add a template to the context of the error
|
Struct |
getAddional() |
Struct |
getAdditional() |
CatchBlock |
getCatchBlock(Config config)
return detailed catch block of the error
|
Struct |
getCatchBlock(PageContext pc)
return detailed catch block of the error
|
java.lang.String |
getCustomTypeAsString()
Error custom type as String
|
java.lang.String |
getDetail()
return detailed error message
|
Struct |
getErrorBlock(PageContext pc,
ErrorPage ep)
return detailed error block of the error
|
java.lang.String |
getErrorCode()
Error Code
|
java.lang.String |
getExtendedInfo()
return extended info to the error
|
PageException |
getPageException() |
java.lang.String |
getStackTraceAsString()
returns the java stracktrace as a String
|
int |
getTracePointer() |
java.lang.String |
getTypeAsString()
Error type as String
|
void |
setDetail(java.lang.String detail)
sets detailed error message
|
void |
setErrorCode(java.lang.String errorCode)
sets the Error Code
|
void |
setExtendedInfo(java.lang.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
|
boolean |
typeEqual(java.lang.String type)
compare error type as String
|
public PageServletException(PageException pe)
pe
- page exception to holdpublic PageException getPageException()
getPageException
in interface PageExceptionBox
PageExceptionBox.getPageException()
public java.lang.String getDetail()
IPageException
getDetail
in interface IPageException
IPageException.getDetail()
public java.lang.String getErrorCode()
IPageException
getErrorCode
in interface IPageException
IPageException.getErrorCode()
public java.lang.String getExtendedInfo()
IPageException
getExtendedInfo
in interface IPageException
IPageException.getExtendedInfo()
public Struct getCatchBlock(PageContext pc)
IPageException
getCatchBlock
in interface IPageException
IPageException.getCatchBlock(lucee.runtime.PageContext)
public CatchBlock getCatchBlock(Config config)
IPageException
getCatchBlock
in interface IPageException
IPageException.getCatchBlock(lucee.runtime.PageContext)
public Struct getErrorBlock(PageContext pc, ErrorPage ep)
IPageException
getErrorBlock
in interface IPageException
pc
- page context of the requestep
- error pageIPageException.getErrorBlock(PageContext pc,ErrorPage ep)
public void addContext(PageSource template, int line, int column, java.lang.StackTraceElement ste)
IPageException
addContext
in interface IPageException
template
- new template contextline
- line of the errorcolumn
- column of the errorIPageException.addContext(lucee.runtime.PageSource, int, int, java.lang.StackTraceElement)
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
Dumpable.toDumpData(lucee.runtime.PageContext, int, lucee.runtime.dump.DumpProperties)
public void setDetail(java.lang.String detail)
IPageException
setDetail
in interface IPageException
IPageException.setDetail(java.lang.String)
public void setErrorCode(java.lang.String errorCode)
IPageException
setErrorCode
in interface IPageException
IPageException.setErrorCode(java.lang.String)
public void setExtendedInfo(java.lang.String extendedInfo)
IPageException
setExtendedInfo
in interface IPageException
IPageException.setExtendedInfo(java.lang.String)
public java.lang.String getTypeAsString()
IPageException
getTypeAsString
in interface IPageException
IPageException.getTypeAsString()
public boolean typeEqual(java.lang.String type)
IPageException
typeEqual
in interface IPageException
type
- other error typeIPageException.typeEqual(java.lang.String)
public java.lang.String getCustomTypeAsString()
IPageException
getCustomTypeAsString
in interface IPageException
IPageException.getCustomTypeAsString()
public int getTracePointer()
getTracePointer
in interface IPageException
IPageException.getTracePointer()
public void setTracePointer(int tracePointer)
setTracePointer
in interface IPageException
tracePointer
- The tracePointer to set.IPageException.setTracePointer(int)
public Struct getAdditional()
getAdditional
in interface IPageException
IPageException.getAdditional()
public Struct getAddional()
getAddional
in interface IPageException
public java.lang.String getStackTraceAsString()
IPageException
getStackTraceAsString
in interface IPageException
IPageException.getStackTraceAsString()