This repository was archived by the owner on Jan 20, 2025. It is now read-only.
File tree 1 file changed +2
-6
lines changed
src/main/java/org/eclipse/tractusx/managedidentitywallets/service
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 30
30
import org .eclipse .tractusx .managedidentitywallets .exception .WalletNotFoundProblem ;
31
31
import org .eclipse .tractusx .managedidentitywallets .utils .CommonUtils ;
32
32
import org .eclipse .tractusx .managedidentitywallets .utils .Validate ;
33
+ import org .eclipse .tractusx .ssi .lib .exception .did .DidParseException ;
33
34
import org .eclipse .tractusx .ssi .lib .model .verifiable .credential .VerifiableCredential ;
34
35
import org .springframework .stereotype .Service ;
35
36
@@ -54,12 +55,7 @@ public Wallet getWalletByIdentifier(String identifier) {
54
55
if (CommonUtils .getIdentifierType (identifier ).equals (StringPool .BPN )) {
55
56
wallet = walletRepository .getByBpn (identifier );
56
57
} else {
57
- try {
58
- wallet = walletRepository .getByDid (identifier );
59
- } catch (Exception e ) {
60
- log .error ("Error while parsing did {}" , StringEscapeUtils .escapeJava (identifier ), e );
61
- throw new WalletNotFoundProblem ("Error while parsing did " + identifier );
62
- }
58
+ wallet = walletRepository .getByDid (identifier );
63
59
}
64
60
Validate .isNull (wallet ).launch (new WalletNotFoundProblem ("Wallet not found for identifier " + identifier ));
65
61
return wallet ;
You can’t perform that action at this time.
0 commit comments