Skip to content

Encouraging unknown type introduction before narrowing #92

Closed
@thierrymarianne

Description

@thierrymarianne

Hi!

In the spirit of providing alternate solutions
for exercice 13 (entitled catch-blocks),
does it make sense to encourage possible introduction of

  • unknown type
  • guard clause for case when e variable inheriting
    from Error class so that it is handled
    as expected (with expectation provided by test assertion),
  • guard clause for case when e variable
    does not inherit from Error class?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions