Skip to content

Conversation History Refactoring - Exceptions and Dialogues #38

@milkdromeda

Description

@milkdromeda
  • Dialogues: used to notify the user of an invalid action/use case (these mistakes are preventable)
  • Exceptions
    • Intended usage: use run time exceptions to indicate precondition violations and other exceptions when an unpreventable issue arises
    • A specific place to use exceptions (for unpreventable issues): For the method User.getChatByID to run successfully, the specified chatID must correspond to a chat in the system. However, if the storage gets mutated accidentally while the program is running, getChatByID may not work as intended and an exception should be used.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions