Skip to content

Commit 1507938

Browse files
authored
Merge pull request #126 from filip26/patch/092
Add new DidResolutionException construction, 0.9.2
2 parents b4e7168 + 1cf9815 commit 1507938

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ An implementation of the [Decentralized Identifiers (DIDs) v1.0](https://www.w3.
2222
<dependency>
2323
<groupId>com.apicatalog</groupId>
2424
<artifactId>carbon-did</artifactId>
25-
<version>0.9.1</version>
25+
<version>0.9.2</version>
2626
</dependency>
2727
```
2828

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)