Skip to content

Commit c3dd404

Browse files
authored
Merge pull request #709 from AbhinavJha1023/patch-1
Update VerificationException.groovy
2 parents 18fbbb5 + 58be3ee commit c3dd404

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed
Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
11
package com.lesfurets.jenkins.unit
22

33
/**
4-
* Custom exception class used in the verify method in BasePipelineTest
4+
* Exception thrown when verification in BasePipelineTest fails.
55
*/
6-
class VerificationException extends Exception {
6+
class VerificationException extends RuntimeException {
77

8-
VerificationException(String errorMessage) {
9-
super(errorMessage)
8+
/**
9+
* Constructs a new VerificationException with the specified detail message.
10+
*
11+
* @param message the detail message
12+
*/
13+
VerificationException(String message) {
14+
super(message)
15+
}
16+
17+
/**
18+
* Constructs a new VerificationException with the specified detail message and cause.
19+
*
20+
* @param message the detail message
21+
* @param cause the cause of the exception
22+
*/
23+
VerificationException(String message, Throwable cause) {
24+
super(message, cause)
1025
}
1126
}

0 commit comments

Comments
 (0)