You should be able to create a CFML error. Assuming you have the OpenBD
source in eclipse be in the Java editor hold ctrl (or command for mac)
+shift + R this'll pop open the resource finder and then type *Exception*
this should give you all the OpenBD exceptions.


Adam


On Thu, Jun 4, 2009 at 1:28 AM, Brad B. <[email protected]> wrote:

>
> Seems so obvious now. Thanks.
> Lastly can I break out of the function and send a Not Found error from
> within a plugin?
> I've tried
>
> _session.RES.sendError(404, "Not Found");
> and
> _session.RES.sendError(HttpServletResponse.SC_NOT_FOUND);
>
> The first method works but with errors (should i be using something else?):
>
> java.lang.IllegalStateException: STREAM
>        at org.mortbay.jetty.Response.getWriter(Response.java:583)
>        at
> com.naryx.tagfusion.cfm.engine.cfHttpServletResponse$cfStringWriter.flushToResponseWriter(Unknown
> Source)
>        at
> com.naryx.tagfusion.cfm.engine.cfHttpServletResponse$cfStringWriter.flush(Unknown
> Source)
>        at
> com.naryx.tagfusion.cfm.engine.cfHttpServletResponse.flush(Unknown Source)
>        at com.naryx.tagfusion.cfm.engine.cfSession.pageFlush(Unknown
> Source)
>
>
> Thanks again.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to