Package ortus.boxlang.web.handlers
Class WebErrorHandler
java.lang.Object
ortus.boxlang.web.handlers.WebErrorHandler
I handle default errors for a web request
TODO: allow custom error template to be configured
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
handleError
(Throwable e, IBoxHTTPExchange exchange, WebRequestBoxContext context, ortus.boxlang.runtime.util.FRTransService frTransService, ortus.boxlang.runtime.interop.DynamicObject trans) Handle an error
-
Constructor Details
-
WebErrorHandler
public WebErrorHandler()
-
-
Method Details
-
handleError
public static void handleError(Throwable e, IBoxHTTPExchange exchange, WebRequestBoxContext context, ortus.boxlang.runtime.util.FRTransService frTransService, ortus.boxlang.runtime.interop.DynamicObject trans) Handle an error- Parameters:
e
- the errorexchange
- the exchangecontext
- the contextfrTransService
- the FRTrans, if anytrans
- the transaction, if any
-