forked from TrueCloudLab/frostfs-sdk-java
parent
c9a54d56fb
commit
23bbe08893
70 changed files with 1375 additions and 587 deletions
|
@ -0,0 +1,16 @@
|
|||
package info.frostfs.sdk.exceptions;
|
||||
|
||||
import info.frostfs.sdk.dto.response.ResponseStatus;
|
||||
|
||||
public class ResponseException extends RuntimeException {
|
||||
private final ResponseStatus status;
|
||||
|
||||
public ResponseException(ResponseStatus status) {
|
||||
super(status.toString());
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public ResponseStatus getStatus() {
|
||||
return status;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue