#3147 New exceptions
Opened 2 years ago by tkopecek. Modified 2 years ago

Let's introduce new exceptions but not use them yet. We will wait for another ~2 versions, so clients should know it in. Gather list here. @ktdreyer


Metadata Update from @tkopecek:
- Custom field Size adjusted to None

2 years ago

The koji/__init__.py file is massive, so I don't want to add new ones there. Let's add a new koji/exceptions.py to match how python-requests organizes requests.exceptions.

Today the koji.convertFault() method iterates over the entire globals().values() list, looking for GenericError classes. It will be straightforward to make it iterate over all the classes in koji.exceptions instead.

Some other ones we might consider:

  • NotPermitted - instead of the more general AuthError
  • NameValidationError - for the new regular expression string validation feature

Metadata Update from @jcupova:
- Issue tagged with: no_qe

2 years ago

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.29 (was: 1.28)

2 years ago

Metadata Update from @tkopecek:
- Issue set to the milestone: None (was: 1.29)

2 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #3152 Last updated 2 years ago