spec/lib/ls_catch.cfm
2025-06-02 16:16:51 +03:00

24 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<cfsilent>
<cfparam name="ATTRIBUTES.catch"/>
<cfparam name="ATTRIBUTES.output" default=""/><!--- deprecated, use instead ATTRIBUTES.status --->
<cfsavecontent variable="message">
<cfoutput>
Ошибка при обращении к базе данных. Возможно, программа некорректно сформировала условия фильтра или сортировки. В качестве временной меры попробуйте <a href="#request.thisPage#?reset_filter=yes&sort=reset">сбросить условия фильтра и сортировки</a>. Просьба сообщить об ошибке администратору.<br/>
#ATTRIBUTES.catch.message#<br/>
#ATTRIBUTES.catch.detail#<br/>
</cfoutput>
</cfsavecontent>
<!--- deprecated behavior --->
<cfif len(ATTRIBUTES.output)>
<cfset "CALLER.#ATTRIBUTES.output#"=#message#/>
</cfif>
<!--- modern behavior --->
<cfif structKeyExists(ATTRIBUTES,"status")>
<cfset ATTRIBUTES.status.errorState="Yes"/>
<cfset ATTRIBUTES.status.errorMessage="#message#"/>
</cfif>
</cfsilent>