Made a TCBError constructor that is used instead of normal Error.