<html>
<head>
<title>ASPError IuWFNg</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">ASPError IuWFNg</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">


<p><!--<primary>ASPError object</primary>-->
<!--<primary>errors</primary><secondary>handling
of</secondary>-->ASP 3.0 œꂽgݍ݌^ ASPError IuWFNggpƁÃ݂ZbV ASP y[W̃XNvgŔŌ̃G[Ɋւڍׂȏ\ł܂B̃IuWFNǵA9 ̓ǂݎpvpeBāAG[̃^Cvƃ\[XɊւڍׂȏ񋟂܂B̏́AVBScript  Err IuWFNg瓾ڍׂłB</p>




<p>ASPError IuWFNgƂ̃vpeBgpɂ́AServer IuWFNg̐V\bh <!--<primary>GetLastError
method</primary><secondary>ASPError
object</secondary>-->GetLastError ĂяoKv܂B̃\bh́AASPErrorObject Ԃ܂B̃IuWFNg̃vpeB̒ĺAɎ悤ɁAXNvgŔŌ̃G[Ɋւڍׂ𔽉f悤ɐݒ肳Ă܂B</p>




<span class="PROGRAMLISTING"><pre>Dim objMyASPError
Set objMyASPError = Server.GetLastError</pre></span>




<p><!--<primary>IIS (Internet Information
Server)</primary><secondary>errors and</secondary>-->IIS 5.0 CXg[ꍇAftHgł́AASP R[hŉ炩̑OAXNvgA^C̃G[ƁAIIS ł́Ã݂XNvg̏~AXNvg̎s <filename>500-100.ASP</filename> ƂÕJX^G[y[WɃ_CNg܂B̃_CNǵAServer.Transfer \bhւ̓ĂяooRŎs܂B̃\bh́Aŏ̃XNvgŗpłԏׂĕی삵ȂAXNvgʂ̃XNvgւƎsړ܂BڍׂɂẮA<link linkend="ch09-1-fm2xml"> 9 </link>QƂĂB</p>




<p><filename>500-100.ASP</filename> XNvgɂ́AServer.GetLastError \bhւ̌Ăяo܂܂Ă܂B̃XNvǵAftHgł <filename>C:\WINNT\Help\iisHelp\common</filename> fBNgɒuĂ܂B̃XNvgsƁAGetLastError ւ̌ĂяǒʕԂAASPError IuWFNǧ݂̃vpeBltH[}bgĕ\܂B</p>




<p>ftHg̃G[y[W <filename>500-100.ASP</filename> ̂܂܎gp邩ATCg̃bN & tB[𔽉f悤ɕҏWł܂B܂́AInternet Services Manager XibvCgpāAIy[W IIS _CNgł܂B<link linkend="appd-1-fm2xml">t^ D</link> QƂĂB</p>




<p>ASPError IuWFNg̃vpeBARNVA\bhAуCxg̊TvɂẮÃ{bNXQƂĂB</p>




<!--
<p class="TITLE">ASPError Object Summary</p>




<dl>
<dt>Properties</dt>
<dd><p>ASPCode</p>






<p>ASPDescription</p>




<p>Category</p>




<p>Column</p>




<p>Description</p>




<p>File</p>




<p>Line</p>




<p>Number</p>




<p>Source</p>
</dd>





<dt>Collections</dt>
<dd><p>None</p></dd>







<dt>Methods</dt>
<dd><p>None</p></dd>







<dt>Events</dt>
<dd><p>None</p></dd>

</dl>



-->
</td></tr>
</table>
</div>
<div id="CommentsTroubleshooting">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
RgуguV[eBO</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2">&nbsp;</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">

<p><!--<primary>comments and
troubleshooting</primary><secondary>ASPError
object</secondary>-->S҂ ASP fxbp[̑́ÃR[hgpāAVBScript  Err IuWFNggpXNvg̃fobOLɂ܂B</p>




<span class="PROGRAMLISTING"><pre>On Error Resume Next</pre></span>




<p>XNvgɂ̃R[hsw肷ƁAOG[ƃXNvg (\) G[ꍇɂ̂݁AIIS  Server.Transfer \bhĂяoAXNvg̎s <filename>500-100.ASP</filename> XNvg܂̓JX^G[XNvgɃ_CNg܂B^CG[ĂAIIS ͏ <filename>500-100.ASP</filename> ɓ]܂BƂ΁AfobOR[ĥ̍sgpĂÃR[hubÑG[ߑłƂ͌܂B</p>




<span class="PROGRAMLISTING"><pre>Dim intCounter
For intCounter = 1 to 100
     intResult = intCounter / (intCounter - 100)
Next</pre></span>




<p>̃Xjybgł́A<var class="replaceable">intCounter</var>  100 ɂȂƔ 0 ɂ鏜ZG[ߑR[hA<span class="LITERAL">Next</span> Xe[gg̑OɒǉKv܂BG[ߑp̂̍sR[hŜɓnĒǉꍇ́AG[̉\s\ČIɃgbvKv邽߁AԂAꎩ̃G[N₷ԂɂȂ܂B̂ƂA ASPError IuWFNg瓾 Err IuWFNg葽ƂA<span class="LITERAL">On Error Resume Next</span> ͂łgpȂ悤ɂĂB</p>




<p>ASPError IuWFNgy[W <filename>500-100.ASP</filename>A܂͗ގ̃JX^}CYꂽG[XNvg̕ʂ̗Dꂽgp@ƂāApubNANZX\ȃTCgŔG[邱Ƃ܂BƂ΁A<filename>500-100.ASP</filename> XNvgJX^}CYāATCg̃J[XL[Ɣwi荞݁AguɒʂĂ郆[U[₢킹łwv̓dbԍLڂ邱Ƃł܂B܂AASPError IuWFNg <filename>500-100.ASP</filename> XNvgɓnL͈͂̏p΁AT|[gS҂͂Iɖ₢킹ɑΏł܂B</p>




<p> 1 l@́A<filename>500-100.ASP</filename> gpāAG[ʒm "obNOEh" ɂK؂ȒS҂Ƀ[eBOAGh[U[ɑ΂ăG[̏ڍׂ\ɂ邱ƂłB̃o[W <filename>500-100.ASP</filename> ł́AG[ƂAу[U[ŃANVsKvƂPɎA"obNOEh" ŃG[̓dq[T|[gS҂ɑM܂B̋@\sXNvg̗ɂẮȀ͂̍ŌQƂĂB</p>




<p>ASPError IuWFNg̃vpeBᎦ鎟̃R[hłׂ͂āA3 ̈قȂG[XNvgpĂ܂Bŏ̃XNvgɂ͍\G[A2 Ԗڂ̃XNvgɂ͑OfBNeBuɃG[܂B3 Ԗڂ̃XNvgł̓^CG[܂B̗łׂ͂ē 3  ASP y[WpăG[𐶐Ă܂AJX^G[y[W <filename>500-100.ASP</filename> ̃RećÃvpeBᎦ悤ɕύXĂ܂BG[𐶐 3  ASP y[Ŵ͎ƂłB</p>




<span class="PROGRAMLISTING"><pre>**** BEGIN Error Generating Script #1 ****
&lt;HTML&gt;
&lt;HEAD&gt;&lt;TITLE&gt;
Error Generation Page #1
&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;%
' This page contains a syntax error.
' In the following For...Next loop, the keyword
' "For" is mispelled.
Dim intCounter
<strong class="userinput">Fir</strong> intCounter = 1 to 100
%&gt;
Look everyone! I'm counting: &lt;%=intCounter%&gt;&lt;BR&gt;
&lt;%
Next
%&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
**** END Error Generating Script #1 ****


**** BEGIN Error Generating Script #2 ****
&lt;HTML&gt;
&lt;HEAD&gt;&lt;TITLE&gt;
Error Generation Page #2
&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;%
' This page contains a preprocessing error.
' The work "file" in the #INCLUDE preprocessor 
' directive is mispelled:
%&gt;
&lt;!--#include <strong class="userinput">fil</strong>=/headers/AdminHeader.INC --&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
**** END Error Generating Script #2 ****


**** BEGIN Error Generating Script #3 ****
&lt;HTML&gt;
&lt;HEAD&gt;&lt;TITLE&gt;
Error Generation Page #3
&lt;/TITLE&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;%
' This page contains a runtime error.
' In the following For...Next loop, when the
' intCounter variable gets to zero, the result
' is a divide by zero error.
Dim intCounter
Dim dblDivResult
For intCounter = 1 to 100
     dblDivResult = <strong class="userinput">intCounter / (intCounter - 100)</strong>
%&gt;
Look everyone! I'm dividing: &lt;%=dblDivResult%&gt;&lt;BR&gt;
&lt;%
Next
%&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
**** END Error Generating Script #3 ****</pre></span>
</td>
</tr>
</table>
</div>
<div id="ASPCode">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
ASPCode</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">objASPError.ASPCode</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p>The <!--<primary>ASPCode property
(ASPError)</primary>-->ASPCode vpeB́AG[𐶐XNvgŔ ASP ŗL̃G[\lR[hێ܂BASP XNvg̏ŃG[ꍇAIIS ɂẴvpeB܂܂B</p>




<p>ASPCode vpeB͓ǂݎpłB</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̗ł́AftHg̃JX^G[XNvg <filename>500-100.ASP</filename> Ɏ̃R[hǉ邱ƁAсuRgуguV[eBOv̍ŌɎ 3 ̊eXNvggpēYXNvgĂяoG[𐶐邱ƂOƂĂ܂B</p>




<span class="PROGRAMLISTING"><pre>**** BEGIN ASPCode Example Script ****
&lt;%
' This script demonstrates the use of the ASPCode
' property of the ASPError object.
Dim objMyASPError

Set objMyASPError = Server.GetLastError( )

Response.Write "The value of the ASPCode property is " &amp; objMyASPError.ASPCode
%&gt;
**** END ASPCode Example Script ****</pre></span>




<p>G[XNvgsƁAÕXNvgł́A 3 ̉܂B</p>




<p>G[XNvg #1:</p>




<span class="PROGRAMLISTING"><pre>The value of the ASPCode property is [EMPTY]</pre></span>




<p>G[XNvg #2:</p>




<span class="PROGRAMLISTING"><pre>The value of the ASPCode property is <strong class="userinput">ASP 0128</strong></pre></span>




<p>G[XNvg #3:</p>




<span class="PROGRAMLISTING"><pre>The value of the ASPCode property is [EMPTY]</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Oɂ悤ɁAASP XNvgg̉ߎɃG[ȂAASPCode vpeB͏܂܂B̂Ƃ́AׂĂ̑OfBNeBuɓĂ͂܂܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="ASPDescription">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
ASPDescription</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">objASPError.ASPDescription</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>ASPDescription property
(ASPError)</primary>-->ASPDescription vpeB́AASP G[̔ IIS ɂď܂镶lłB̃vpeB́A ASP G[̃^CvɊւāAASPCode vpeBLqIȃf[^܂BASPDescription vpeB́AASPCode vpeBƓlɁAG[^CG[̌ʂł͂Ȃ ASP XNvg̉ߎ̃G[łꍇɂ̂ݏ܂܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̗ł́AuRgуguV[eBOv̍Ōɗ񋓂G[XNvggpĂ܂BftHg̃JX^G[XNvg <filename>500-100.ASP</filename> Ɏ̃R[hǉ邱ƂOƂĂ܂B</p>




<span class="PROGRAMLISTING"><pre>**** BEGIN ASPDescription Example Script ****
&lt;%
' This script demonstrates the use of the ASPDescription
' property of the ASPError object.
Dim objMyASPError

Set objMyASPError = Server.GetLastError( )

Response.Write "The value of the ASPDescription property is " &amp; _
     objMyASPError.ASPDescription
%&gt;
**** END ASPDescription Example Script ****</pre></span>




<p>G[XNvgsƁAO ASPDescription XNvgł́A 3 ̉܂B</p>




<p>G[XNvg #1:</p>




<span class="PROGRAMLISTING"><pre>The value of the ASPDescription property is [EMPTY]</pre></span>




<p>G[XNvg #2:</p>




<span class="PROGRAMLISTING"><pre>The value of the ASPDescription property is <strong class="userinput">The Include file name must be 
specified using either the File or Virtual attribute.</strong></pre></span>




<p>G[XNvg #3:</p>




<span class="PROGRAMLISTING"><pre>The value of the ASPDescription property is [EMPTY]</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>ASPDescription vpeB́AASPCode vpeBƓlɁAASP ߎŗL̃G[ɂ̂ݖ𗧂܂BASPError IuWFNg Description vpeB́AقڕKAŐṼG[ɂēx܂͂K؂ȏ񋟂܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Category">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Category</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">objASPError.Category</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Category property
(ASPError)</primary>-->Category vpeB́AIIS-specificAscripting language specificAcomponent specific ȂǁAG[̃^Cvێ܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̗ł́AuRgуguV[eBOv̍Ōɗ񋓂G[XNvggpĂ܂BftHg̃JX^G[XNvg <filename>500-100.ASP</filename> Ɏ̃R[hǉ邱ƂOƂĂ܂B</p>




<span class="PROGRAMLISTING"><pre>**** BEGIN Category Example Script ****
&lt;%
' This script demonstrates the use of the Category
' property of the ASPError object.
Dim objMyASPError

Set objMyASPError = Server.GetLastError( )

Response.Write "The value of the Category property is " &amp; objMyASPError.Category
%&gt;
**** END Category Example Script ****</pre></span>




<p>G[XNvgsƁÃXNvgł́A 3 ̉܂B</p>




<p>G[XNvg #1:</p>




<span class="PROGRAMLISTING"><pre>The value of the Category property is <strong class="userinput">Microsoft VBScript compilation</strong></pre></span>




<p>G[XNvg #2:</p>




<span class="PROGRAMLISTING"><pre>The value of the Category property is <strong class="userinput">Active Server Pages</strong></pre></span>




<p>G[XNvg #3:</p>




<span class="PROGRAMLISTING"><pre>The value of the Category property is <strong class="userinput">Microsoft VBScript runtime</strong></pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Category vpeBgpƁAG[̌ꏊi荞ނƂł܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Column">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Column</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">objASPError.Column</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Column property</primary><secondary>ASPError
object</secondary>-->Column vpeB́AG[̌ƂȂR[h̍ŏ̕܂ޕ̎w long ^̒lێ܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̗ł́AuRgуguV[eBOv̍Ōɗ񋓂G[XNvggpĂ܂BftHg̃JX^G[XNvg <filename>500-100.ASP</filename> Ɏ̃R[hǉ邱ƂOƂĂ܂B</p>




<span class="PROGRAMLISTING"><pre>**** BEGIN Column Example Script ****
&lt;%
' This script demonstrates the use of the Column
' property of the ASPError object.
Dim objMyASPError

Set objMyASPError = Server.GetLastError( )

Response.Write "The value of the Column property is " &amp; objMyASPError.Column
%&gt;
**** END Column Example Script ****</pre></span>




<p>G[XNvgsƁAO Column XNvgł́A 3 ̉܂B</p>




<p>G[XNvg #1:</p>




<span class="PROGRAMLISTING"><pre>The value of the Column property is <strong class="userinput">19</strong></pre></span>




<p>G[XNvg #2:</p>




<span class="PROGRAMLISTING"><pre>The value of the Column property is <strong class="userinput">-1</strong></pre></span>




<p>G[XNvg #3:</p>




<span class="PROGRAMLISTING"><pre>The value of the Column property is <strong class="userinput">-1</strong></pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Column vpeB́AR[h̍\G[𒲂ׂۂɕ֗łBAG[ ASP ŗL̃G[łꍇ܂̓G[̔ꏊɍ\sȃR[hȂꍇA̒l -1 ƂȂpr肳܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Description</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">objASPError.Description</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Description
property</primary><secondary>ASPError
object</secondary>-->Description vpeB́AŌɔG[Lq镶łB͒ʏAASP ߎŗL̃G[ł_΁A֘A ASPDescription vpeBLqIŕ֗łB</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̗ł́AuRgуguV[eBOv̍Ōɗ񋓂G[XNvggpĂ܂BftHg̃JX^G[XNvg <filename>500-100.ASP</filename> Ɏ̃R[hǉ邱ƂOƂĂ܂B</p>




<span class="PROGRAMLISTING"><pre>**** BEGIN Description Example Script ****
&lt;%
' This script demonstrates the use of the Description
' property of the ASPError object.
Dim objMyASPError

Set objMyASPError = Server.GetLastError( )

Response.Write "The value of the Description property is " &amp; objMyASPError.Description
%&gt;
**** END Description Example Script ****</pre></span>




<p>G[XNvgsƁAO Description XNvgł́A 3 ̉܂B</p>




<p>G[XNvg #1:</p>




<span class="PROGRAMLISTING"><pre>The value of the Description property is <strong class="userinput">Expected end of statement</strong></pre></span>




<p>G[XNvg #2:</p>




<span class="PROGRAMLISTING"><pre>The value of the Description property is <strong class="userinput">Missing File or Virtual attribute</strong></pre></span>




<p>G[XNvg #3:</p>




<span class="PROGRAMLISTING"><pre>The value of the Description property is <strong class="userinput">Division by zero</strong></pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Description vpeB̒ĺAʓI ASPError IuWFNg̑̃vpeBLqIłBÂׂẴvpeBƓlɁAASP AvP[ṼGh[U[ɂƂāA̗pr͒肳܂B̂߁AG[̌\́A[U[ɂƂėLvŖ𗧂܂B̏͂̍ŌɁAJX^}CYꂽ <filename>500-100.ASP</filename> XNvg̗܂B̃XNvggpƁÂȂG[\ȂAXNvg̃fxbp[ɂ͖𗧂񋟂邱Ƃł܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="File">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
File</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">objASPError.File</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>File property
(ASPError)</primary>-->File vpeBɂ́AG[𐶐R[h܂ރt@Cւ̊SpX܂B̃t@Cɂ́AWeb [gt@Cւ̊SpX܂܂Ă܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̗ł́AuRgуguV[eBOv̍Ōɗ񋓂G[XNvggpĂ܂BftHg̃JX^G[XNvg <filename>500-100.ASP</filename> Ɏ̃R[hǉ邱ƂOƂĂ܂B</p>




<span class="PROGRAMLISTING"><pre>**** BEGIN File Example Script ****
&lt;%
' This script demonstrates the use of the File
' property of the ASPError object.
Dim objMyASPError

Set objMyASPError = Server.GetLastError( )

Response.Write "The value of the File property is " &amp; objMyASPError.File
%&gt;
**** END File Example Script ****</pre></span>




<p>G[XNvgsƁAO File XNvgł́A 3 ̉܂B</p>




<p>G[XNvg #1:</p>




<span class="PROGRAMLISTING"><pre>The value of the File property is <strong class="userinput">/errorgen1.asp</strong></pre></span>




<p>G[XNvg #2:</p>




<span class="PROGRAMLISTING"><pre>The value of the File property is <strong class="userinput">/errorgen2.asp</strong></pre></span>




<p>G[XNvg #3:</p>




<span class="PROGRAMLISTING"><pre>The value of the File property is <strong class="userinput">/errorgen3.asp</strong></pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>t@C̃pX́AWeb T[o[̃[gpXLڂĂ܂B݂̃AvP[Ṽ[g̃pXł͂܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Line">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Line</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">objASPError.Line</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Line property</primary><secondary>ASPError
object</secondary>-->Line vpeB́AG[𐶐R[hosԍ\ long ^̒lłB</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̗ł́AuRgуguV[eBOv̍Ōɗ񋓂G[XNvggpĂ܂BftHg̃JX^G[XNvg <filename>500-100.ASP</filename> Ɏ̃R[hǉ邱ƂOƂĂ܂B</p>




<span class="PROGRAMLISTING"><pre>**** BEGIN Line Example Script ****
&lt;%
' This script demonstrates the use of the Line
' property of the ASPError object.
Dim objMyASPError

Set objMyASPError = Server.GetLastError( )

Response.Write "The value of the Line property is " &amp; objMyASPError.Line
%&gt;
**** END Line Example Script ****</pre></span>




<p>G[XNvgsƁAO Line XNvgł́A 3 ̉܂B</p>




<p>G[XNvg #1:</p>




<span class="PROGRAMLISTING"><pre>The value of the Line property is <strong class="userinput">11</strong></pre></span>




<p>G[XNvg #2:</p>




<span class="PROGRAMLISTING"><pre>The value of the Line property is <strong class="userinput">11</strong></pre></span>




<p>G[XNvg #3:</p>




<span class="PROGRAMLISTING"><pre>The value of the Line property is <strong class="userinput">14</strong></pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>s̃JEǵAR[h̐擪 ASP s 1 ƂĎn܂܂B</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Number">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Number</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">objASPError.Number</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Number property</primary><secondary>ASPError
object</secondary>-->Number vpeBɂ́ACOM R|[lgԂꂽG[R[h\ long ^̒l܂܂Ă܂B long ^̒ĺAW COM G[R[hƂȂ܂B</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̗ł́AuRgуguV[eBOv̍Ōɗ񋓂G[XNvggpĂ܂BftHg̃JX^G[XNvg <filename>500-100.ASP</filename> Ɏ̃R[hǉ邱ƂOƂĂ܂B</p>




<span class="PROGRAMLISTING"><pre>**** BEGIN Number Example Script ****
&lt;%
' This script demonstrates the use of the Number
' property of the ASPError object.
Dim objMyASPError

Set objMyASPError = Server.GetLastError( )

Response.Write "The value of the Number property is " &amp; objMyASPError.Number
%&gt;
**** END Number Example Script ****</pre></span>




<p>G[XNvgsƁA 3 ̉܂B</p>




<p>G[XNvg #1:</p>




<span class="PROGRAMLISTING"><pre>The value of the Number property is <strong class="userinput">-2146827263</strong></pre></span>




<p>G[XNvg #2:</p>




<span class="PROGRAMLISTING"><pre>The value of the Number property is <strong class="userinput">-2147467259</strong></pre></span>




<p>G[XNvg #3:</p>




<span class="PROGRAMLISTING"><pre>The value of the Number property is <strong class="userinput">-2146828277</strong></pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
<div id="Source">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td class="NAME">
Source</td>
<td class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td class="usage" colspan="2"><span class="LITERAL">objASPError.Source</span>
</td></tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr><td colspan="2" class="description">
<p><!--<primary>Source property</primary><secondary>ASPError
object</secondary>-->Source vpeB́AŌ̃G[̌ƂȂR[h\IɕsłꍇɁÃR[hs܂ޕłB</p>



</td>
</tr>
<tr><td colspan="2" class="CLEARSEPARATION">&nbsp;</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">p[^</td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Ȃ</p>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>̗ł́AuRgуguV[eBOv̍Ōɗ񋓂G[XNvggpĂ܂BftHg̃JX^G[XNvg <filename>500-100.ASP</filename> Ɏ̃R[hǉ邱ƂOƂĂ܂B</p>




<span class="PROGRAMLISTING"><pre>**** BEGIN Source Example Script ****
&lt;%
' This script demonstrates the use of the Source
' property of the ASPError object.
Dim objMyASPError

Set objMyASPError = Server.GetLastError( )

Response.Write "The value of the Source property is " &amp; objMyASPError.Source

%&gt;
**** END Source Example Script ****</pre></span>




<p>G[XNvgsƁAO Source XNvgł́A 3 ̉܂B</p>




<p>G[XNvg #1:</p>




<span class="PROGRAMLISTING"><pre>The value of the Source property is <strong class="userinput">Fir intCounter = 1 to 100</strong></pre></span>




<p>G[XNvg #2:</p>




<span class="PROGRAMLISTING"><pre>The value of the Source property is [EMPTY]</pre></span>




<p>G[XNvg #3:</p>




<span class="PROGRAMLISTING"><pre>The value of the Source property is [EMPTY]</pre></span>




</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE"></td>
</tr>
<tr>
<td colspan="2" class="description">




<p>Oɂ悤ɁASource vpeB́AꂽG[\Ɋ֘AĂꍇɂ̂ݖ𗧂܂B\Ɋ֘AG[łȂꍇÃvpeB͋łB</p>



</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
</body>
</html>
