public class PageRuntimeException extends RuntimeException implements IPageException, PageExceptionBox
Constructor and Description |
---|
PageRuntimeException(PageException pe)
constructor of the class
|
PageRuntimeException(String message)
standart excption constructor
|
PageRuntimeException(String message,
String detail)
standart excption constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addContext(PageSource template,
int line,
int column,
StackTraceElement ste)
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
|
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
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PageRuntimeException(PageException pe)
pe
- page exception to holdpublic PageRuntimeException(String message)
message
- message of the exceptionpublic PageRuntimeException(String message, String detail)
message
- message of the exceptiondetail
- detailed information to the exceptionpublic String getDetail()
IPageException
getDetail
in interface IPageException
public String getErrorCode()
IPageException
getErrorCode
in interface IPageException
public String getExtendedInfo()
IPageException
getExtendedInfo
in interface IPageException
public CatchBlock getCatchBlock(Config config)
IPageException
getCatchBlock
in interface IPageException
public Struct getCatchBlock(PageContext pc)
IPageException
getCatchBlock
in interface IPageException
public Struct getCatchBlock()
public Struct getErrorBlock(PageContext pc, ErrorPage ep)
IPageException
getErrorBlock
in interface IPageException
pc
- page context of the requestep
- error pagepublic 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 errorpublic DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
public PageException getPageException()
getPageException
in interface PageExceptionBox
public void setDetail(String detail)
IPageException
setDetail
in interface IPageException
public void setErrorCode(String errorCode)
IPageException
setErrorCode
in interface IPageException
public void setExtendedInfo(String extendedInfo)
IPageException
setExtendedInfo
in interface IPageException
public boolean typeEqual(String type)
IPageException
typeEqual
in interface IPageException
type
- other error typepublic String getTypeAsString()
IPageException
getTypeAsString
in interface IPageException
public String getCustomTypeAsString()
IPageException
getCustomTypeAsString
in interface IPageException
public int getTracePointer()
getTracePointer
in interface IPageException
public void setTracePointer(int tracePointer)
setTracePointer
in interface IPageException
tracePointer
- The tracePointer to set.public Struct getAdditional()
getAdditional
in interface IPageException
public Struct getAddional()
getAddional
in interface IPageException
public String getStackTraceAsString()
IPageException
getStackTraceAsString
in interface IPageException
Copyright © 2015 Lucee