Petals SE KPI

Handle exceptions

Details

  • Type: Improvement Request Improvement Request
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.2
  • Fix Version/s: None
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    Multiple exception blocks handling is nice if something is effectively handled in the catch block, remove code such as :

    } catch (final WSNotificationNotImplementedException e) { logger.log(Level.WARNING, "[" + e.getClass().getSimpleName() + "] -An error occurs during \"clearSubsciptions\" request proccess"); } catch (final WSNotificationException e) { logger.log(Level.WARNING, "[" + e.getClass().getSimpleName() + "] -An error occurs during "clearSubsciptions" request proccess"); } } catch (final WSAddressingException e) { logger.log(Level.WARNING, "[" + e.getClass().getSimpleName() + "] -An error occurs during \"clearSubsciptions\" request proccess"); } catch (final WSNotificationExtensionException e) { logger.log(Level.WARNING, "[" + e.getClass().getSimpleName() + "] -An error occurs during "clearSubsciptions" request proccess"); } } catch (final IOException e) { logger.log(Level.WARNING, "[" + e.getClass().getSimpleName() + "] -An error occurs during \"clearSubsciptions\" request proccess"); }

    which is not very useful...

    Show
    Multiple exception blocks handling is nice if something is effectively handled in the catch block, remove code such as : } catch (final WSNotificationNotImplementedException e) { logger.log(Level.WARNING, "[" + e.getClass().getSimpleName() + "] -An error occurs during \"clearSubsciptions\" request proccess"); } catch (final WSNotificationException e) { logger.log(Level.WARNING, "[" + e.getClass().getSimpleName() + "] -An error occurs during "clearSubsciptions" request proccess"); } } catch (final WSAddressingException e) { logger.log(Level.WARNING, "[" + e.getClass().getSimpleName() + "] -An error occurs during \"clearSubsciptions\" request proccess"); } catch (final WSNotificationExtensionException e) { logger.log(Level.WARNING, "[" + e.getClass().getSimpleName() + "] -An error occurs during "clearSubsciptions" request proccess"); } } catch (final IOException e) { logger.log(Level.WARNING, "[" + e.getClass().getSimpleName() + "] -An error occurs during \"clearSubsciptions\" request proccess"); } which is not very useful...

Activity

Sébastien Rebiere made changes - Tue, 7 Sep 2010 - 16:20:42 +0200
Field Original Value New Value
Workflow jira [ 10754 ] pl-bugtracker-workflow [ 10809 ]
Status |unused-0| [ 1 ] Open [ 10002 ]
Olivier Fabre made changes - Tue, 2 Nov 2010 - 17:56:13 +0100
Assignee Sandra Trino [ strino ] Olivier Fabre [ ofabre ]

People

Dates

  • Created:
    Wed, 1 Sep 2010 - 17:11:59 +0200
    Updated:
    Tue, 2 Nov 2010 - 17:56:13 +0100