add classes for android error handling