bug: fixed changed Homebox endpoint and added better exception handling.
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
package com.vaessl.app.exception;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
@Getter
|
||||
@RequiredArgsConstructor
|
||||
public class RemoteApiException extends RuntimeException {
|
||||
|
||||
private final String appUrl;
|
||||
private final String path;
|
||||
|
||||
public RemoteApiException(String appUrl, String path) {
|
||||
super("Remote API returned empty body: " + appUrl + path);
|
||||
this.appUrl = appUrl;
|
||||
this.path = path;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user