diff --git a/README.md b/README.md index 2818dbe..f38f4a0 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ An implementation of the [Decentralized Identifiers (DIDs) v1.0](https://www.w3. com.apicatalog carbon-did - 0.9.1 + 0.9.2 ``` diff --git a/pom.xml b/pom.xml index 92cec36..2080404 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.apicatalog carbon-did - 0.9.1 + 0.9.2 jar https://github.com/filip26/carbon-did-core diff --git a/src/main/java/com/apicatalog/did/resolver/DidResolutionException.java b/src/main/java/com/apicatalog/did/resolver/DidResolutionException.java index cc8ec60..49f2b86 100644 --- a/src/main/java/com/apicatalog/did/resolver/DidResolutionException.java +++ b/src/main/java/com/apicatalog/did/resolver/DidResolutionException.java @@ -86,6 +86,23 @@ public DidResolutionException(String did, String message, Throwable e) { this.code = Code.Internal; } + /** + * Creates a new resolution exception. + *

+ * Code is set to {@link Code#Internal}. + *

+ * + * @param did the DID being resolved (may be {@code null}) + * @param code error code + * @param message detail message + * @param e the cause + */ + public DidResolutionException(String did, Code code, String message, Throwable e) { + super(message, e); + this.did = did; + this.code = code; + } + /** * Returns the DID that failed to resolve. *