railo.runtime.exp
Class PageExceptionImpl

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.servlet.jsp.JspException
              extended by railo.runtime.exp.PageException
                  extended by railo.runtime.exp.PageExceptionImpl
All Implemented Interfaces:
Serializable, Dumpable, IPageException
Direct Known Subclasses:
ApplicationException, CustomTypeException, DatabaseException, ExpressionException, LockException, MissingIncludeException, NativeException, RemoteException, SecurityException, TemplateException

public abstract class PageExceptionImpl
extends PageException

Railo Runtime Page Exception, all runtime Exception are sub classes of this class

See Also:
Serialized Form

Constructor Summary
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
 
Method Summary
 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)
           
 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
 String getLine(Config config)
           
 int getPageDeep()
           
 Throwable getRootCause()
           
 StackTraceElement[] getStackTrace()
           
 String getStackTraceAsString()
          returns the java stracktrace as a String
 Array getTagContext(Config config)
           
static Array getTagContext(Config config, StackTraceElement[] traces)
           
 int getTracePointer()
           
 String getTypeAsString()
          Error type as String
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 void setAdditional(String 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 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 java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageExceptionImpl

public PageExceptionImpl(String message,
                         String type)
Class Constructor

Parameters:
message - Exception Message
type - Type as String

PageExceptionImpl

public PageExceptionImpl(String message,
                         String type,
                         String customType)
Class Constructor

Parameters:
message - Exception Message
type - Type as String
customType - CUstom Type as String

PageExceptionImpl

public PageExceptionImpl(Throwable e,
                         String type)
Class Constructor

Parameters:
e - exception
type - Type as String

PageExceptionImpl

public PageExceptionImpl(Throwable e,
                         String type,
                         String customType)
Class Constructor

Parameters:
e - exception
type - Type as String
customType - CUstom Type as String
Method Detail

getDetail

public String getDetail()
Description copied from interface: IPageException
return detailed error message

Returns:
detailed error message
See Also:
IPageException.getDetail()

getErrorCode

public String getErrorCode()
Description copied from interface: IPageException
Error Code

Returns:
Error Code
See Also:
IPageException.getErrorCode()

getExtendedInfo

public String getExtendedInfo()
Description copied from interface: IPageException
return extended info to the error

Returns:
extended info
See Also:
IPageException.getExtendedInfo()

setDetail

public void setDetail(String detail)
Description copied from interface: IPageException
sets detailed error message

See Also:
IPageException.setDetail(java.lang.String)

setErrorCode

public void setErrorCode(String errorCode)
Description copied from interface: IPageException
sets the Error Code

See Also:
IPageException.setErrorCode(java.lang.String)

setExtendedInfo

public void setExtendedInfo(String extendedInfo)
Description copied from interface: IPageException
sets extended info to the error

See Also:
IPageException.setExtendedInfo(java.lang.String)

getCatchBlock

public final Struct getCatchBlock()
See Also:
railo.runtime.exp.IPageException#getCatchBlock()

getCatchBlock

public final Struct getCatchBlock(PageContext pc)
Description copied from interface: IPageException
return detailed catch block of the error

Returns:
catch block
See Also:
IPageException.getCatchBlock(railo.runtime.PageContext)

getCatchBlock

public CatchBlock getCatchBlock(Config config)

getTagContext

public Array getTagContext(Config config)

getTagContext

public static Array getTagContext(Config config,
                                  StackTraceElement[] traces)

getPageDeep

public int getPageDeep()

getErrorBlock

public Struct getErrorBlock(PageContext pc,
                            ErrorPage ep)
Description copied from interface: IPageException
return detailed error block of the error

Parameters:
pc - page context of the request
ep - error page
Returns:
catch block
See Also:
IPageException.getErrorBlock(railo.runtime.PageContext, railo.runtime.err.ErrorPage)

getLine

public String getLine(Config config)
See Also:
railo.runtime.exp.PageException#getLine()

addContext

public void addContext(PageSource pr,
                       int line,
                       int column,
                       StackTraceElement element)
Description copied from interface: IPageException
add a template to the context of the error

Parameters:
pr - new template context
line - line of the error
column - column of the error
See Also:
railo.runtime.exp.PageException#addContext(railo.runtime.PageSource, int, int)

toDumpData

public DumpData toDumpData(PageContext pageContext,
                           int maxlevel,
                           DumpProperties dp)
Description copied from interface: Dumpable
method to print out information to a object as HTML

Returns:
HTML print out
See Also:
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)

getStackTraceAsString

public String getStackTraceAsString()
Description copied from interface: IPageException
returns the java stracktrace as a String

Returns:
stack trace
See Also:
IPageException.getStackTraceAsString()

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable
See Also:
Throwable.printStackTrace()

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable
See Also:
Throwable.printStackTrace(java.io.PrintStream)

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable
See Also:
Throwable.printStackTrace(java.io.PrintWriter)

setAdditional

public void setAdditional(String key,
                          Object value)
set a additional key value

Parameters:
key -
value -

getRootCause

public Throwable getRootCause()
Overrides:
getRootCause in class javax.servlet.jsp.JspException
See Also:
JspException.getRootCause()

getTracePointer

public int getTracePointer()
Returns:
Returns the tracePointer.
See Also:
IPageException.getTracePointer()

setTracePointer

public void setTracePointer(int tracePointer)
Parameters:
tracePointer - The tracePointer to set.
See Also:
IPageException.setTracePointer(int)

typeEqual

public boolean typeEqual(String type)
Description copied from interface: IPageException
compare error type as String

Parameters:
type - other error type
Returns:
is same error type
See Also:
IPageException.typeEqual(java.lang.String)

getTypeAsString

public String getTypeAsString()
Description copied from interface: IPageException
Error type as String

Returns:
error type
See Also:
IPageException.getTypeAsString()

getCustomTypeAsString

public String getCustomTypeAsString()
Description copied from interface: IPageException
Error custom type as String

Returns:
error type
See Also:
IPageException.getCustomTypeAsString()

getAdditional

public Struct getAdditional()
See Also:
railo.runtime.exp.PageException#getAdditional()

getAddional

public Struct getAddional()
Returns:
Returns the additional.

getStackTrace

public StackTraceElement[] getStackTrace()
Overrides:
getStackTrace in class Throwable
See Also:
Throwable.getStackTrace()


Copyright © 2012 Railo