Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilabヘルプ >> Scilab > Error handling > iserror

iserror

エラー発生の確認

呼出し手順

iserror([n])

引数

n

整数, エラー番号

説明

(errcatchをコールした後に) エラー番号 n のエラーが発生したかどうかを確認します. iserror は,エラーが発生した場合に 1, それ以外の場合に 0を返します.

n>0 はエラー番号です ; n<0を指定すると全てのエラーが確認されます.

errcatch(4,'continue') // trap undefined variable
unknown
iserror() // 1
errclear()
iserror() // 0

参照

  • error — エラーメッセージ
  • errcatch — エラーの捕捉
Report an issue
<< error_table Error handling lasterror >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:58:18 CEST 2014