Exception
└─SwatException
└─SwatCrossSiteRequestForgeryException
public class SwatCrossSiteRequestForgeryException
extends SwatException
| Field Summary | |
|---|---|
| protected SwatForm | The form that did not authenticate. |
| Fields inherited from Swat.SwatException | |
|---|---|
| backtrace, class, displayer, logger | |
| Constructor Summary | |
|---|---|
SwatCrossSiteRequestForgeryException(string message, integer code, SwatForm form) Creates a new cross-site request forgery exception. |
|
| Method Summary | |
|---|---|
| SwatForm | getForm() Gets the form that did not authenticate. |
| Methods inherited from Swat.SwatException | |
|---|---|
| display, displayStyleSheet, formatSensitiveParam, formatValue, getArguments, getClass, getSummary, handle, isSensitiveParameter, log, process, setDisplayer, setLogger, setupHandler, toString, toXHTML, wasHandled | |
protected SwatForm $form = null
The form that did not authenticate
public SwatCrossSiteRequestForgeryException(string message, integer code, SwatForm form)
Creates a new cross-site request forgery exception
message - the message of the exception.code - the code of the exception.form - the form that did not authenticate.public SwatForm getForm()
Gets the form that did not authenticate
Thrown by
SwatFormwhen a possible cross-site request forgery is detectedBy design, it is not possible to get the correct authentication token from this exception. Since it is not possible to get the correct authentication token, the incorrect token is not useful and is also not availble in this exception.