what do you mean error function? its not that hard to implement your own. such as void Error(string ErrorMessage, string File, int Line, bool Fatal) that then prints something like this: error: FileName: Line: Message and if it is fatal exit. you can use a try catch block too