SIT-1749: moved error methods to private.