Create errClass.cs

A simple class that has error checks built into it