Location: PHPKode > projects > Open Power Template > docs/Opt/appendix.error-messages.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="robots" content="all" />

	<title>Error messages - Open Power Template</title>
	
	<link rel="stylesheet" type="text/css" href="design/generic.css" media="all"  />
	<link rel="stylesheet" type="text/css" href="design/print.css" media="print" />
	<!--[if lte IE 6]><link rel="stylesheet" href="design/ie.css" type="text/css" /><![endif]-->	
	<!--[if IE 7]><link rel="stylesheet" href="design/ie7.css" type="text/css" /><![endif]-->
</head>
<body>

<div id="wrap">
	<div id="header">
		<h1>Open Power Template 2.0</h1>
		<h2>Error messages</h2>
		<p class="generated">@ 02.09.2010</p>
		<p class="location"><a href="index.html"><strong>User manual</strong></a> &raquo; <a href="appendix.html">Appendix</a> &raquo; <a href="appendix.error-messages.html">Error messages</a></p>
	</div>
	
	<div id="content"><dl class="location"><dt><a href="appendix.html">8. Appendix</a><br/>B. Error messages</dt><dd class="prev">A. Resources<br/><a href="appendix.resources.html">&laquo; Previous</a></dd><dd class="next">C. Possible problems<br/><a href="appendix.possible-problems.html">Next &raquo;</a></dd></dl>	<h1>Appendix B. Error messages</h1><p>This appendix contains the list of exceptions generated by OPT:</p>

<h2>API Exceptions</h2>

<dl>
<dt><code>Opt_Initialization_Exception</code></dt>
<dd>Your script tries to perform an action that can be done only if OPT is initialized/uninitialized (see the error message for details).</dd>

<dt><code>Opt_ContentType_Exception</code></dt>
<dd>The output system received the invalid content type value.</dd>

<dt><code>Opt_ObjectNotExists_Exception</code></dt>
<dd>The specified item you try to use is not registered in OPT.</dd>

<dt><code>Opt_TemplateNotFound_Exception</code></dt>
<dd>OPT could not find the specified template within the specified resource.</dd>

<dt><code>Opt_OutputOverloaded_Exception</code></dt>
<dd>The HTTP output system has already sent the XML content to the browser. The attempt of sending another template content to the browser will surely produce an invalid output document and has been blocked.</dd>

<dt><code>Opt_FilesystemAccess_Exception</code></dt>
<dd>Permission error: OPT is not able to read/write the specified directory.</dd>

<dt><code>Opt_InvalidEntityName_Exception</code></dt>
<dd>The specified string is not a valid entity name.</dd>

<dt><code>Opt_TreeInvalidDepth_Exception</code></dt>
<dd>The <a href="syntax.instructions.tree.html" title="3.7.25. opt:tree">opt:tree</a> instruction received invalid depth argument on the element list.</dd>
</dl>

<h2>Template exceptions</h2>

<dl>
<dt><code>Opt_XmlNoProlog_Exception</code></dt>
<dd>The template must have an XML prolog.</dd>

<dd>The exception does not occur, if the <code>prologRequired</code> configuration option is set to <strong>false</strong>.</dd>

<dt><code>Opt_XmlInvalidAttribute_Exception</code></dt>
<dd>Syntax error in the tag attribute list.</dd>

<dt><code>Opt_XmlInvalidProlog_Exception</code></dt>
<dd>Syntax/semantic error in the XML prolog.</dd>

<dt><code>Opt_XmlInvalidDoctype_Exception</code></dt>
<dd>Syntax error in the Doctype tag. Please note that OPT does not check the DTD section syntax.</dd>

<dt><code>Opt_XmlInvalidTagStructure_Exception</code></dt>
<dd>Invalid use of one of XML elements. For example, if you try to specify attributes for the closing tag, OPT throws this exception.</dd>

<dt><code>Opt_XmlRootElement_Exception</code></dt>
<dd>The template must contain a single root element.</dd>

<dd>The exception does not occur, if the <code>singleRootNode</code> configuration option is set to <strong>false</strong>.</dd>

<dt><code>Opt_XmlInvalidCharacter_Exception</code></dt>
<dd>Cannot use XML special characters like <code>&lt;</code> and <code>&gt;</code> in the static text. You have to encode them with entities.</dd>

<dt><code>Opt_XmlInvalidOrder_Exception</code></dt>
<dd>The tags have been closed in the invalid order.</dd>

<dt><code>Opt_XmlComment_Exception</code></dt>
<dd>The exception occurs, if the comments contain the content that is forbidden by the XML standard.</dd>

<dt><code>Opt_InvalidExpressionModifier_Exception</code></dt>
<dd>There are only two expression modifiers in OPT: <strong>e:</strong> and <strong>u:</strong>. Your template tried to use another one.</dd>

<dt><code>Opt_InvalidAttributeType_Exception</code></dt>
<dd>The value specified in one of OPT instruction attributes is invalid.</dd>

<dt><code>Opt_FormatNotFound_Exception</code></dt>
<dd>The specified data format has not been found. Check if you entered the name correctly and if it is installed in OPT.</dd>

<dt><code>Opt_FormatNotSupported_Exception</code></dt>
<dd>The specified data format does not support the specified functionality.</dd>

<dt><code>Opt_AssignNotSupported_Exception</code></dt>
<dd>The specified data format does not support assigning the new values to the specified variable.</dd>

<dt><code>Opt_FormatNotDecorated_Exception</code></dt>
<dd>The specified data format must decorate another data format in order to work properly in the specified place.</dd>

<dt><code>Opt_Expression_Exception</code></dt>
<dd>OPT expression error. The message identifies the unexpected token.</dd>

<dt><code>Opt_FunctionArgument_Exception</code></dt>
<dd>Missing argument in the function.</dd>

<dt><code>Opt_ExpressionOptionDisabled_Exception</code></dt>
<dd>The specified expression syntax option is not available in this place.</dd>

<dt><code>Opt_ItemNotAllowed_Exception</code></dt>
<dd>The specified item is not registered in OPT and cannot be used in templates.</dd>

<dt><code>Opt_SysVariableLength_Exception</code></dt>
<dd>The system variable call is invalid. OPT expects it to be longer/shorter.</dd>

<dt><code>Opt_SysVariableUnknown_Exception</code></dt>
<dd>Unknown system variable action.</dd>

<dt><code>Opt_SysVariableInvalidUse_Exception</code></dt>
<dd>The specified system variable call cannot be used in this place.</dd>

<dt><code>Opt_AttributeNotDefined_Exception</code></dt>
<dd>Missing required XML attribute.</dd>

<dt><code>Opt_AttributeEmpty_Exception</code></dt>
<dd>The required XML attribute is empty.</dd>

<dt><code>Opt_InvalidCallback_Exception</code></dt>
<dd>The callback registered in OPT is invalid.</dd>

<dt><code>Opt_UnknownEntity_Exception</code></dt>
<dd>The specified XML entity is not registered in OPT and cannot be parsed.</dd>
</dl>

<h2>Compiler exceptions</h2>

<p>These exceptions are usually caused by buggy instructions or the compiler code.</p>

<dl>
<dt><code>Opt_UnknownProcessor_Exception</code></dt>
<dd>No instruction processor has been found for the specified postprocessed XML tag.</dd>

<dt><code>Opt_CompilerLocked_Exception</code></dt>
<dd>The compiler can compile only one template at the same time.</dd>

<dt><code>Opt_CompilerCodeBufferConflict_Exception</code></dt>
<dd>The specified code buffer permits a limited number of PHP code snippets only.</dd>

<dt><code>Opt_APINoWildcard_Exception</code></dt>
<dd>Thrown by <a href="api.opt-xml-scannable.sort.html" title="7.18.16. Opt_Xml_Scannable::sort()">Opt_Xml_Scannable::sort()</a></dd>

<dd>The requested order list must contain a wildcard <code>*</code>.</dd>

<dt><code>Opt_APIInvalidBorders_Exception</code></dt>
<dd>Undocumented.</dd>

<dt><code>Opt_APIInvalidNodeType_Exception</code></dt>
<dd>The nodes of the specified type do not accept the specified nodes as their children.</dd>

<dt><code>Opt_APIHookNotDefined_Exception</code></dt>
<dd>Data format error: the specified hook is not defined in the data format.</dd>

<dt><code>Opt_APIMissingDefaultValue_Exception</code></dt>
<dd>Thrown by <a href="api.opt-compiler-processor._extract-attributes.html" title="7.7.5. Opt_Compiler_Processor::_extractAttributes()">Opt_Compiler_Processor::_extractAttributes()</a>.</dd>

<dd>The optional attribute definition does not contain a default value.</dd>

<dt><code>Opt_APINoDataReturned_Exception</code></dt>
<dd>The instruction processor requested some data and did not receive them.</dd>
</dl>

<h2>Instruction exceptions</h2>

<p>The following exceptions are thrown by the instruction processors.</p>

<dl>
<dt><code>Opt_InstructionInvalidParent_Exception</code></dt>
<dd>Invalid parent of the specified tag. Check the instruction documentation.</dd>

<dt><code>Opt_InstructionTooManyItems_Exception</code></dt>
<dd>Too many occurrences of the specified tag in the instruction. Check the instruction documentation.</dd>

<dt><code>Opt_SectionExists_Exception</code></dt>
<dd>The specified section is already registered.</dd>

<dt><code>Opt_SectionNotFound_Exception</code></dt>
<dd>The specified section has not been found.</dd>

<dt><code>Opt_InstructionInvalidLocation_Exception</code></dt>
<dd>The specified tag must be nested somehow in another tag in order to work properly.</dd>

<dt><code>Opt_TreeContent_Exception</code></dt>
<dd>Thrown by <a href="syntax.instructions.tree.html" title="3.7.25. opt:tree">opt:tree</a></dd>

<dd>Informs that the <code>opt:content</code> has been nested in an OPT tag that generates some dynamic PHP code. This may lead to generate an invalid compiler output.</dd>

<dt><code>Opt_SnippetRecursion_Exception</code></dt>
<dd>Infinite snippet recursion detected.</dd>

<dt><code>Opt_CompilerRecursion_Exception</code></dt>
<dd>Infinite include recursion detected.</dd>

<dt><code>Opt_InheritanceRecursion_Exception</code></dt>
<dd>Infinite template inheritance recursion detected.</dd>

<dt><code>Opt_IncludeNoAttributes</code></dt>
<dd>Thrown by <a href="syntax.instructions.include.html" title="3.7.12. opt:include">opt:include</a></dd>

<dd>The <code>opt:include</code> instruction expects to have either <code>file</code> or <code>from</code> attribute.</dd>

<dt><code>Opt_ComponentNotActive_Exception</code></dt>
<dd>The specified item cannot be used outside the component context.</dd>

<dt><code>Opt_CycleNoValues_Exception</code></dt>
<dd>Trying to declare a cycle without values. Please simply add some values to the cycle.</dd>

<dt><code>Opt_AttributeInvalidNamespace_Exception</code></dt>
<dd>Thrown by <a href="syntax.attributes.single.html" title="3.8.10. opt:single">opt:single</a> attribute.</dd>

<dd>This attribute cannot change the state of the tags in the specified namespace.</dd>
</dl>

<h2>Other exceptions</h2>

<dl>
<dt><code>Opt_NotImplemented_Exception</code></dt>
<dd>The specified feature is not implemented yet.</dd>

<dd>This exception should not occur in the stable releases.</dd>

<dt><code>Opt_NotSupported_Exception</code></dt>
<dd>The specified feature is not supported by the current OPT version.</dd>
</dl>
<dl class="location location-bottom"><dt>B. Error messages<br/><a href="appendix.html">8. Appendix</a></dt><dd class="prev"><a href="appendix.resources.html">&laquo; Previous</a><br/>A. Resources</dd><dd class="next"><a href="appendix.possible-problems.html">Next &raquo;</a><br/>C. Possible problems</dd></dl>		</div>
	
	<div id="footer">
		<p>Copyright &copy; <a href="http://www.invenzzia.org/">Invenzzia Group 2008-2009</a></p>
		<p>Available under the terms of license: <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License 1.2</a></p>
		<p>Generated by <strong>TypeFriendly 0.1.4</strong> by <a href="http://www.invenzzia.org/">Invenzzia</a></p>
	</div>
</div>

</body>
</html>
Return current item: Open Power Template