Skip to content

feat: DomainExceptionHandler パターンと NoteNotFoundException を実装する #4

@hideyukiMORI

Description

@hideyukiMORI

概要

ドメイン例外をハンドラーに委譲するパターンを確立し、Note ドメインに適用する。

タスク

  • nene2.middleware.DomainExceptionHandlerProtocol を定義
  • ErrorHandlerMiddleware がハンドラーリストを受け取る設計に拡張
  • example.note.NoteNotFoundException
  • example.note.NoteNotFoundExceptionHandler

完了定義

GET /notes/999 で 404 Problem Details が返ること。

参照

  • docs/roadmap.md v0.2.0
  • PHP: src/Example/Note/NoteNotFoundException.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions