Ticket #7886 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Improve error handling within ICat

Reported by: Jay Rainey Owned by: Jay Rainey
Priority: minor Milestone: Release 3.0
Component: Framework Keywords: ICAT4, ICAT
Cc: Blocked By:
Blocking: Tester: Nick Draper

Description

In a previous ticket (#4674) Russel noted:

N.B. On choosing several of the options from the Catalog menu I see messages like the following on the console:

Object::connect: No such slot ApplicationWindow::writeErrorToLogWindow(const QString&)
Object::connect:  (sender name:   'ICatSearch'

Change History

comment:1 Changed 7 years ago by Jay Rainey

  • Owner set to Jay Rainey

comment:2 Changed 7 years ago by Jay Rainey

Upon investigation there appears to be no implementation of writeErrorToLogWindow in ApplicationWindow.cpp. The implementation of error logging was changed 5 months ago by Martyn in #6202.

The error that is contained in the QString (obtained from ICatUtils.cpp) is extremely similar to an error logged by the related algorithm. Both are runtime exceptions and output:

  • ICatUtils.cpp: Please Login to the information catalog using the login menu provided to do the investigation search.
  • CatalogMyDataSearch.cpp: Please login to the information catalog using the login dialog provided.

It's therefore worthwhile deciding where we think is best for the error logging to occur. During the attempted execution of the algorithm, or within the algorithm itself.

Last edited 7 years ago by Jay Rainey (previous) (diff)

comment:3 Changed 7 years ago by Jay Rainey

  • Milestone changed from Backlog to Release 3.0

comment:4 Changed 7 years ago by Jay Rainey

This has been addressed in #7866. To verify this is true open ICAT search and no writeErrorToLogWindow errors should occur.

comment:5 Changed 7 years ago by Jay Rainey

  • Status changed from new to verify
  • Resolution set to fixed

comment:6 Changed 7 years ago by Nick Draper

  • Status changed from verify to verifying
  • Tester set to Nick Draper

comment:7 Changed 7 years ago by Nick Draper

  • Status changed from verifying to closed

Everything is already merged in #7866

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8731

Note: See TracTickets for help on using tickets.