railo.runtime.listener
Class ModernAppListenerException

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.listener.ModernAppListenerException
All Implemented Interfaces:
Serializable, Dumpable, IPageException

public final class ModernAppListenerException
extends PageException

See Also:
Serialized Form

Constructor Summary
ModernAppListenerException(PageException pe, String eventName)
          Constructor of the class
 
Method Summary
 void addContext(PageSource pageSource, 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 getEventName()
           
 String getExtendedInfo()
          return extended info to the error
 String getLine(Config config)
           
 PageException getPageException()
           
 Throwable getRootCause()
           
 StackTraceElement[] getStackTrace()
           
 String getStackTraceAsString()
          returns the java stracktrace as a String
 int getTracePointer()
           
 String getTypeAsString()
          Error type as String
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 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

ModernAppListenerException

public ModernAppListenerException(PageException pe,
                                  String eventName)
Constructor of the class

Parameters:
pe -
eventName -
Method Detail

addContext

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

Parameters:
pageSource - new template context
line - line of the error
column - column of the error

getAdditional

public Struct getAdditional()
Returns:
Returns the additional.

getAddional

public Struct getAddional()
Returns:
Returns the additional.

getCatchBlock

public Struct getCatchBlock()

getCatchBlock

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

Returns:
catch block

getCatchBlock

public CatchBlock getCatchBlock(Config config)
Description copied from interface: IPageException
return detailed catch block of the error

Returns:
catch block

getCustomTypeAsString

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

Returns:
error type

getDetail

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

Returns:
detailed error message

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

getErrorCode

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

Returns:
Error Code

getExtendedInfo

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

Returns:
extended info

getStackTraceAsString

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

Returns:
stack trace

getTracePointer

public int getTracePointer()
Returns:
Returns the tracePointer.

getTypeAsString

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

Returns:
error type

setDetail

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


setErrorCode

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


setExtendedInfo

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


setTracePointer

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

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

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

getEventName

public String getEventName()
Returns:
the eventName

getLine

public String getLine(Config config)

getRootCause

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

getStackTrace

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

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable

getPageException

public PageException getPageException()


Copyright © 2012 Railo