railo.runtime.tag
Class Throw

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.tag.Throw
All Implemented Interfaces:
javax.servlet.jsp.tagext.Tag

public final class Throw
extends TagImpl

The cfthrow tag raises a developer-specified exception that can be caught with cfcatch tag having any of the following type specifications - cfcatch type = 'custom_type', cfcatch type = 'Application' 'cfcatch' type = 'Any'


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Throw()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setDetail(String detail)
          set the value detail
 void setErrorcode(String errorcode)
          set the value errorcode A custom error code that you supply.
 void setExtendedinfo(String extendedinfo)
          set the value extendedinfo A custom error code that you supply.
 void setMessage(Object message)
          set the value message A message that describes the exceptional event.
 void setMessage(String message)
          Deprecated. this method should no longer be used.
 void setObject(Object object)
          set the value object a native java exception Object, if this attribute is defined all other will be ignored.
 void setType(String type)
          set the value type
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
getParent, required, required, required, required, setPageContext, setPageContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Throw

public Throw()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class TagImpl
See Also:
Tag.release()

setExtendedinfo

public void setExtendedinfo(String extendedinfo)
set the value extendedinfo A custom error code that you supply.

Parameters:
extendedinfo - value to set

setType

public void setType(String type)
set the value type

Parameters:
type - value to set

setDetail

public void setDetail(String detail)
set the value detail

Parameters:
detail - value to set

setMessage

public void setMessage(Object message)
set the value message A message that describes the exceptional event.

Parameters:
message - value to set

setMessage

public void setMessage(String message)
Deprecated. this method should no longer be used.


setErrorcode

public void setErrorcode(String errorcode)
set the value errorcode A custom error code that you supply.

Parameters:
errorcode - value to set

setObject

public void setObject(Object object)
               throws PageException
set the value object a native java exception Object, if this attribute is defined all other will be ignored.

Parameters:
object - object to set
Throws:
PageException

doStartTag

public int doStartTag()
               throws PageException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
Throws:
PageException
See Also:
Tag.doStartTag()

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl
See Also:
Tag.doEndTag()


Copyright © 2012 Railo