Skip to content

All custom exceptions should extend a base module exception #303

@MrMaz

Description

@MrMaz

For example:

class UserNotFoundException extends UserException {
   // ...
}

This makes is possible to catch any user exception without a lot of if blocks

Metadata

Metadata

Assignees

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