Skip to content

Commit 13248ea

Browse files
committed
fix: Trolig en bug i kalkuleringen av test coverage som ikke teller med custom exceptions som extender Exception klassen. Måtte derfor legge til en private variabel som ikke gjør noe, men teller i code coverage dersom klassen instansieres.
1 parent 4fe4cfe commit 13248ea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/platform-utility/custom-permission-helper/main/classes/CustomPermissionHelperException.cls

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
* @description Exception related to the package custom permission helper.
33
*
44
* @author Tor Håkon Sigurdsen
5-
* @since 13.03
5+
* @since 0.1.0, March 2025
66
*/
7-
public with sharing class CustomPermissionHelperException extends Exception {
7+
public inherited sharing class CustomPermissionHelperException extends Exception {
8+
// Added in order to avoid no test coverage even if the exception class is used.
9+
// This is probably a bug in the Salesforce platform.
10+
private Boolean isCustomPermissionHelperException = true;
811
}

0 commit comments

Comments
 (0)