Changeset View
Changeset View
Standalone View
Standalone View
swh/clearlydefined/error.py
Show All 16 Lines | class RevisionNotFound(Exception): | ||||
""" | """ | ||||
Raise this when ID does not has revision component at the expected place | Raise this when ID does not has revision component at the expected place | ||||
For example: maven/mavencentral/cobol-parser/abc/0.4.0.json | For example: maven/mavencentral/cobol-parser/abc/0.4.0.json | ||||
""" | """ | ||||
pass | pass | ||||
class WrongMetadata(Exception): | |||||
""" | |||||
Raise this when tried to process invalid metadata | |||||
""" | |||||
pass | |||||
class NoJsonExtension(Exception): | class NoJsonExtension(Exception): | ||||
""" | """ | ||||
Raise this when ID does not have .json extension at end | Raise this when ID does not have .json extension at end | ||||
For example: maven/mavencentral/cobol-parser/revision/0.4.0.txt | For example: maven/mavencentral/cobol-parser/revision/0.4.0.txt | ||||
""" | """ | ||||
pass | pass | ||||
Show All 17 Lines |