Skip to content

XP123

Exploring Extreme Programming

Menu

Primary menu

  • Home
  • Refactoring Workshop
  • Start Here
    • Comics
    • TDD: Test-Driven Development
    • Refactoring
    • User Stories
    • Dungeons & Patterns
  • Update
  • About
  • Contact

Tag Archives: exceptions

Refactoring Undifferentiated Exceptions

Posted on April 6, 2023 by Bill Wake

Some exception-handling code peels apart exceptions to figure out how to handle them. This is a missed opportunity for more direct code. The Simple Case: Type-Tested Exceptions Sometimes we see handler code like this: catch (Exception e) { // possible Continue reading Refactoring Undifferentiated Exceptions→

Posted in xp123.com | Tagged design, exceptions, refactoring, XPlorations

Testing Exceptions: Harder Than It Looks

Posted on February 9, 2022 by Bill Wake

Exceptions are one of the most complicated constructs in many languages. Because of that, testing exceptions is one of the harder tests to do. Consider the following code. Assume block1 through block3 are straight-line code, each ending with a statement Continue reading Testing Exceptions: Harder Than It Looks→

Posted in xp123.com | Tagged exceptions, programmer, tester, testing, XPlorations

Primary Sidebar Widget Area

Stay Up-to-Date

If you'd like to hear when articles come out, sign up today!

|●  Become a Patron!

Recent Posts

  • AAA and the Object Lifecycle
  • “Test Interface, Not Implementation”
  • How to Reduce Coupling, Three Ways
  • Reordering Items, Four Ways
  • And-Or Trees
  • Run Tests Without an App — Step by Step with Xcode
  • Swift Testing – A New Unit Testing Framework
  • TDD with a Function Pipeline
  • Trees – Confidence in Design
  • Pipelines – Confidence in Design

Tags

agile analysis atdd author business charts classic coach computers conference cool customer design economics fiction games HCI history improv integration interesting intro Java job aids language lean learning metaphor music myth patterns planning programmer refactoring resources reviews scrum software spreadsheet stories tdd team tester training XPlorations

Archives

counter for wordpress
Copyright © 2026 XP123. All Rights Reserved.
Theme: Catch Box by Catch Themes
Scroll Up