• The script generates alarms.

    Use sys.alarm. ('Namespace __ 9-digit alarm code', ...) Invoke the form of. Otherwise, the compilation and packaging will be affected.

    Parameters

    • alarmCode: string

      Alarm code, in the format of namespace + __ + 9-digit alarm code.

    • attachment: string

      Remarks

    • filename: string

      File name, which is obtained by using the filename() method.

    • line: number

      Line number, which is obtained by using the line() method.

    Returns void

    Since

    AppCube 1.3.10

    Example

    import * as sys from 'sys';
    sys.alarm('NS_123456789', 'Remarks', filename(), line());