basic support for class errors