https://m204wiki.rocketsoftware.com/index.php?title=InvalidZipData_class&feed=atom&action=historyInvalidZipData class - Revision history2024-03-29T08:55:59ZRevision history for this page on the wikiMediaWiki 1.40.1https://m204wiki.rocketsoftware.com/index.php?title=InvalidZipData_class&diff=83768&oldid=prevJAL: Created page with "__NOTOC__ An <var>InvalidZipData</var> exception indicates that during an attempt to extract information from a string, that string was found to not contain the valid result o..."2016-04-15T16:29:58Z<p>Created page with "__NOTOC__ An <var>InvalidZipData</var> exception indicates that during an attempt to extract information from a string, that string was found to not contain the valid result o..."</p>
<p><b>New page</b></p><div>__NOTOC__<br />
An <var>InvalidZipData</var> exception indicates that during an attempt to extract information from a string, that string was found to not contain the valid result of a ZIP operation.<br />
<br />
To produce an <var>InvalidZipData</var> exception yourself, you typically use a <var class="product">SOUL</var> <var>[[Exceptions#Using the Throw statement|Throw]]</var> statement with an <var>InvalidZipData</var> <var>[[New (InvalidZipData constructor)|New]]</var> constructor. This statement must be issued from within a method, and it can only be caught by the code that calls the method. For example, the following statement throws an <var>InvalidZipData</var> exception:<br />
<p class="code">throw %(invalidZipData):new<br />
</p><br />
<br />
Remember that you catch an exception with the <var>[[Exceptions#Try and Catch|Catch]]</var> statement; if an exception condition occurs outside a<br />
<var>Catch</var> for it, the request is cancelled.<br />
<br />
For an example of how you might use an exception in your own code, see this [[InvalidValue class|InvalidValue exception example]].<br />
<br />
==The InvalidZipData methods==<br />
{{Template:List of InvalidZipData methods}}<br />
<br />
The methods in the class are described in the subsections that follow. In addition:<br />
<ul><br />
<li>[[Notation conventions for methods]] has information<br />
about the conventions followed. </li><br />
<br />
<li>[[InvalidZipData methods syntax]] is a single page that contains the syntax diagrams of all the methods in the class. </li><br />
</ul><br />
<br />
==New constructor==<br />
{{Template:InvalidZipData:New subtitle}}<br />
<br />
This <var>Constructor</var> generates an instance of an <var>[[InvalidZipData_class|InvalidZipData]]</var> exception. The <var>New</var> method format follows:<br />
<br />
===Syntax===<br />
{{Template:InvalidZipData:New syntax}}<br />
<br />
====Syntax terms====<br />
<table><br />
<tr><th>%invalidZipData</th><br />
<td>A reference to an instance of an <var>InvalidZipData</var> object. </td></tr><br />
<br />
<tr><th><var>[%(InvalidZipData):]</var></th><br />
<td>The class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See [[#Usage notes|Usage notes]], below, for more information about invoking an <var>InvalidZipData</var> <var>Constructor</var>.</td></tr><br />
</table><br />
<br />
===Usage notes===<br />
<ul><br />
<li>As described in [[Object variables#Using New or other Constructors|Using New or other Constructors]], <var>New</var> can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is <var>Null</var>:<p class="code">%invalid = new<br />
<br />
%invalid = %(InvalidZipData):new<br />
<br />
%invalid = %invalid:new<br />
</p><br />
</ul><br />
<br />
[[Category:System exception classes]]</div>JAL