Provides class for handle errors