Add custom error class for gem-specific errors.