Skip to content

Latest commit

 

History

History
30 lines (30 loc) · 875 Bytes

2.1.4FlyLang错误集、错误和问题函数.md

File metadata and controls

30 lines (30 loc) · 875 Bytes

FlyLang错误集、错误和问题函数

简介

        错误集、错误和问题函数是FlyLang面向错误的重要概念。

正文

错误集

声明和定义

errorset <name> {
    //Codes.....
}

错误

声明和定义

<modifier:public> error <name> {
    //Codes.....
}

问题函数

声明和定义

<modifier:public> <returnValueType> {{!static?is:not}} problematicalfunction <name>(parameters) {
    //Codes.....
}

例子:HelloWorld

public Integer not problematicalfunction Main(args As Array inherit string){
   auto io = new IOStream()
   io.StartInit()
   io.OutputStream("Hello World!")
   io.EndInit()
   io.Start()
   return 0;
}