Skip to content

Commit 4141e72

Browse files
committed
Docuemnt Unchecked Exception Condition
Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent 5a22b05 commit 4141e72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hooks/persistence-defectdojo/hook/src/main/java/io/securecodebox/persistence/config/PersistenceProviderConfig.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,19 @@ public PersistenceProviderConfig(@NonNull final String[] args) {
8585
}
8686
}
8787

88+
/**
89+
* Throws {@link DefectDojoPersistenceException} if {@link #isReadOnly()} is {@code true}
90+
*/
8891
public String getRawResultUploadUrl() {
8992
if (isReadOnly()) {
9093
throw new DefectDojoPersistenceException("Cannot access the RawResult Upload URL because the hook is executed in ReadOnly mode!");
9194
}
9295
return rawResultUploadUrl;
9396
}
9497

98+
/**
99+
* Throws {@link DefectDojoPersistenceException} if {@link #isReadOnly()} is {@code true}
100+
*/
95101
public String getFindingUploadUrl() {
96102
if (isReadOnly()) {
97103
throw new DefectDojoPersistenceException("Cannot access the Finding Upload URL because the hook is executed in ReadOnly mode!");

0 commit comments

Comments
 (0)