Refactor error handling

Andrey Veltischev requested to merge andrey/refactor_errors into master

Merge request reports