(Created page with '{{CKFinder_2.x_SSI_Warning}} == Error Messages == The value of the "number" attribute of the <error> tag is always checked when receiving response. The data is processed o…') |
|
(One intermediate revision by the same user not shown) | |
(No difference)
|
Latest revision as of 20:59, 14 May 2010
Error Messages
The value of the "number" attribute of the <error> tag is always checked when receiving response. The data is processed only if the "ErrorNumber" value is equals to "0" (zero). Any other value will popup an error message box to the user.
Each command may implement its set of default errors based on the number. For example the "CreateFolder" command sends a "115" error if the folder already exists.
The special error number "1" (one) is reserved for "custom error messages". When processing this error, the File Browser will look for the value of the "text" attribute of the <error> tag and show and alert box with that text.
For security reasons, all connectors to not be active by default, requiring its manual activation by the end developer. In this way we can prevent the use of the connector by others (hackers) on cases were developers haven’t properly configured it. In those cases, the error “500” must be returned to the user for any command request. Something like this:
<?xml version="1.0" encoding="utf-8"?> <Connector> <Error number="500" /> </Connector>