Skip to content

Commit 8814369

Browse files
committed
Add new DidResolutionException construction, 0.9.2
1 parent b4e7168 commit 8814369

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>com.apicatalog</groupId>
88
<artifactId>carbon-did</artifactId>
99

10-
<version>0.9.1</version>
10+
<version>0.9.2</version>
1111
<packaging>jar</packaging>
1212

1313
<url>https://github.com/filip26/carbon-did-core</url>

src/main/java/com/apicatalog/did/resolver/DidResolutionException.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,23 @@ public DidResolutionException(String did, String message, Throwable e) {
8686
this.code = Code.Internal;
8787
}
8888

89+
/**
90+
* Creates a new resolution exception.
91+
* <p>
92+
* Code is set to {@link Code#Internal}.
93+
* </p>
94+
*
95+
* @param did the DID being resolved (may be {@code null})
96+
* @param code error code
97+
* @param message detail message
98+
* @param e the cause
99+
*/
100+
public DidResolutionException(String did, Code code, String message, Throwable e) {
101+
super(message, e);
102+
this.did = did;
103+
this.code = code;
104+
}
105+
89106
/**
90107
* Returns the DID that failed to resolve.
91108
*

0 commit comments

Comments
 (0)