Skip to content

Commit 0bfcd3c

Browse files
committed
change error handling in restclient
1 parent 2553ad2 commit 0bfcd3c

File tree

6 files changed

+230
-296
lines changed

6 files changed

+230
-296
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package org.fairdatapipeline.dataregistry.restclient;
2+
3+
/** HTTP 406 Not Acceptable: registry rejects our Accept: version header. */
4+
public class RegistryVersionException extends RuntimeException {
5+
/**
6+
* Constructor
7+
*
8+
* @param message The error message.
9+
*/
10+
public RegistryVersionException(String message) {
11+
super(message);
12+
}
13+
14+
/**
15+
* Constructor
16+
*
17+
* @param message The error message.
18+
* @param e The Exception that caused it.
19+
*/
20+
public RegistryVersionException(String message, Exception e) {
21+
super(message, e);
22+
}
23+
}

0 commit comments

Comments
 (0)