store error strings in private class variables
use protected instead of private