|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
railo.runtime.exp.PageServletException
public final class PageServletException
by definition a JSP Tag can only throw JSPExceptions, for that case the PageException is a Subclass of the JSPExceptions, but when a PageException, is escaleted to a parent page, this goes over the include method of the PageContext Object, but this can only throw ServletException. For that this class can Box a JSPException (PageException) in a ServletException (PageServletException)
Constructor Summary | |
---|---|
PageServletException(PageException pe)
constructor of the class |
Method Summary | |
---|---|
void |
addContext(PageSource template,
int line,
int column,
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 |
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 |
String |
getExtendedInfo()
return extended info to the error |
PageException |
getPageException()
|
String |
getStackTraceAsString()
returns the java stracktrace as a String |
int |
getTracePointer()
|
String |
getTypeAsString()
Error type as String |
void |
setDetail(String detail)
sets detailed error message |
void |
setErrorCode(String errorCode)
sets the Error Code |
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 |
boolean |
typeEqual(String type)
compare error type as String |
Methods inherited from class javax.servlet.ServletException |
---|
getRootCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PageServletException(PageException pe)
pe
- page exception to holdMethod Detail |
---|
public PageException getPageException()
getPageException
in interface PageExceptionBox
PageExceptionBox.getPageException()
public String getDetail()
IPageException
getDetail
in interface IPageException
IPageException.getDetail()
public String getErrorCode()
IPageException
getErrorCode
in interface IPageException
IPageException.getErrorCode()
public String getExtendedInfo()
IPageException
getExtendedInfo
in interface IPageException
IPageException.getExtendedInfo()
public Struct getCatchBlock(PageContext pc)
IPageException
getCatchBlock
in interface IPageException
IPageException.getCatchBlock(railo.runtime.PageContext)
public CatchBlock getCatchBlock(Config config)
IPageException
getCatchBlock
in interface IPageException
IPageException.getCatchBlock(railo.runtime.PageContext)
public Struct getErrorBlock(PageContext pc, ErrorPage ep)
IPageException
getErrorBlock
in interface IPageException
pc
- page context of the requestep
- error page
IPageException.getErrorBlock(PageContext pc,ErrorPage ep)
public void addContext(PageSource template, int line, int column, StackTraceElement ste)
IPageException
addContext
in interface IPageException
template
- new template contextline
- line of the errorcolumn
- column of the errorIPageException.addContext(railo.runtime.PageSource, int, int, java.lang.StackTraceElement)
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
Dumpable.toDumpData(railo.runtime.PageContext, int, railo.runtime.dump.DumpProperties)
public void setDetail(String detail)
IPageException
setDetail
in interface IPageException
IPageException.setDetail(java.lang.String)
public void setErrorCode(String errorCode)
IPageException
setErrorCode
in interface IPageException
IPageException.setErrorCode(java.lang.String)
public void setExtendedInfo(String extendedInfo)
IPageException
setExtendedInfo
in interface IPageException
IPageException.setExtendedInfo(java.lang.String)
public String getTypeAsString()
IPageException
getTypeAsString
in interface IPageException
IPageException.getTypeAsString()
public boolean typeEqual(String type)
IPageException
typeEqual
in interface IPageException
type
- other error type
IPageException.typeEqual(java.lang.String)
public 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 String getStackTraceAsString()
IPageException
getStackTraceAsString
in interface IPageException
IPageException.getStackTraceAsString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |