New class: categorized_error, system_error refactoring.