There is no file nor directory at the given path: 'docs/theme/nature/{{pathto('_static/kallithea-logo.svg',1)}}' at revision cc2c473abc5f
Changeset - 352056907cfd
default
0
2
0
validators: introduce InvalidCloneUriException instead of throwing bare Exceptions for invalid clone URIs
When adding a new repository with a remote clone URI, the URI will be validated
in some way. In case of errors, it would raise 'Exception' to report invalid
URLs. Code calling the validation would thus have to catch 'Exception', which
means that _any_ exception would cause the URI to be found invalid.
Instead, create a special exception type intended to be used for all exceptions
we know can occur during normal URL validation.
When adding a new repository with a remote clone URI, the URI will be validated
in some way. In case of errors, it would raise 'Exception' to report invalid
URLs. Code calling the validation would thus have to catch 'Exception', which
means that _any_ exception would cause the URI to be found invalid.
Instead, create a special exception type intended to be used for all exceptions
we know can occur during normal URL validation.
2 files changed with 8 insertions and 4 deletions:
0 comments (0 inline, 0 general)
0 comments (0 inline, 0 general)