Changed baseResource members to protected
Implemented getErrorResource