吉里吉里2 Ver2.32r2に付属のドキュメント追加
This commit is contained in:
71
docs/kr2doc/contents/f_System_exceptionHandler.html
Normal file
71
docs/kr2doc/contents/f_System_exceptionHandler.html
Normal file
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="Shift_JIS"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
|
||||
<!-- generated by to_html.pl from f_System.xml -->
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
|
||||
<title>exceptionHandler - �ߑ������Ȃ��������O�̂��߂̃n���h����</title>
|
||||
<meta name="author" content="W.Dee" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link href="funcref.css" type="text/css" rel="stylesheet" title="�N���X���t�@�����X�p�W���X�^�C��" />
|
||||
<link href="mailto:[email protected]" rev="Made" />
|
||||
<link href="index.html" target="_top" rel="Start" title="�g�b�v�y�[�W" />
|
||||
<link href="f_System.html" title="System�N���X" rel="Parent" />
|
||||
</head>
|
||||
<body>
|
||||
<h1><span class="fheader"><a name="top" id="top">System.exceptionHandler</a></span></h1><div class="para"><div>
|
||||
<dl>
|
||||
<dt>�@�\/�Ӗ�</dt>
|
||||
<dd>
|
||||
�ߑ������Ȃ��������O�̂��߂̃n���h����</dd>
|
||||
<dt>�^�C�v</dt>
|
||||
<dd>
|
||||
<a class="jump" href="f_System.html">System�N���X</a>�̃v���p�e�B (�ǂݏ����\)<br />
|
||||
</dd>
|
||||
<dt>����</dt>
|
||||
<dd>
|
||||
�@�ߑ������Ȃ��������O (�ǂ��ɂ��ߑ����ꂸ�ɋg���g���{�̂ɓn���ꂽ���O) ���������������\���܂��B<br />
|
||||
�@null ���w�肷���ƁA�f�t�H���g�̓����ɂȂ��܂��B<br />
|
||||
�@�f�t�H���g�̓����Ƃ́A
|
||||
<ol> <li>���C�x���g�̔z�M�����~���� (<a class="jump" href="f_System_eventDisabled.html">System.eventDisabled</a> �� �^ �ɐݒ�)</li> <li>���O���t�@�C���ɏo�͊J�n���� (<a class="jump" href="f_Debug_logAsError.html">Debug.logAsError</a> ���Ă�)</li> <li>�G���[���ʒm�����_�C�A���O�{�b�N�X���\�����A�X�N���v�g�G�f�B�^�ł��̉ӏ�������</li> </ol> �@�ł��B<br />
|
||||
�@�n���h�����͈������������A���ꂪ���O�I�u�W�F�N�g�ɂȂ��܂��B<br />
|
||||
�@�n���h�������w�肳���Ȃ����A���邢�̓n���h������ null �ł��邩�A���邢�̓n���h�������U���Ԃ��ƁA�f�t�H���g�̓��삪�s�����܂��B<br />
|
||||
�@�n���h�������^���Ԃ��Ə��L�̃f�t�H���g�̓����͍s�����܂����B<br />
|
||||
�@�n���h���������s���ɔ��C�x���g�����������\�����l�����Ă��������B�g���g���{�̂����C�x���g�������ł��Ă��܂��ƁA���O�n���h�������s���ɍĂї\�����ʗ��O�����������\���������܂��B�����������邽�߁A�ʏ��A�n���h�������łȂɂ����҂悤�ȏ����������ꍇ (�g���g�������C�x���g�����������@������ꍇ )�A���C�x���g�̔��������~�����܂��B<br />
|
||||
<code class="bq"><span class="weak">��:</span><br />System.exceptionHandler = function (e)<br />
|
||||
{<br />
|
||||
// �ǂ��ɂ��ߑ������Ȃ����O���V�X�e�����ŕߑ����ꂽ�ꍇ�A���̊���<br />
|
||||
// �Ă����Be �͗��O�I�u�W�F�N�g�B<br />
|
||||
if(e instanceof "ConductorException")<br />
|
||||
{<br />
|
||||
// �R���_�N�^�̓��������O�̏ꍇ<br />
|
||||
Debug.logAsError(); // ���O�̃t�@�C���ւ̏����o�������̊J�n�Ȃ�<br />
|
||||
var event_disabled = System.eventDisabled;<br />
|
||||
System.eventDisabled = true;<br />
|
||||
// �G���[�̗��R���\�������Ă����ԂɃC�x���g������������<br />
|
||||
// ���������Ȃ̂ł��������C�x���g���������~������<br />
|
||||
System.inform(e.message);<br />
|
||||
System.eventDisabled = event_disabled;<br />
|
||||
// �C�x���g�����邩�ǂ��������̏��Ԃ�<br />
|
||||
return true; // true ���Ԃ��Ɩ{�̑��ŗ��O�̏����͍s���Ȃ��Ȃ�<br />
|
||||
}<br />
|
||||
else<br />
|
||||
{<br />
|
||||
return false; // false ���Ԃ��ƒʏ��̗��O����<br />
|
||||
}<br />
|
||||
};<br />
|
||||
</code>
|
||||
</dd>
|
||||
<dt>�Q��</dt>
|
||||
<dd>
|
||||
<a class="jump" href="f_System_eventDisabled.html">System.eventDisabled</a><br />
|
||||
<a class="jump" href="f_Debug_logAsError.html">Debug.logAsError</a><br />
|
||||
</dd>
|
||||
</dl>
|
||||
</div></div>
|
||||
<script type="text/javascript" charset="Shift_JIS" src="documentid.js" ></script>
|
||||
<script type="text/javascript" charset="Shift_JIS" src="postcontent.js" ></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user