18 lines
540 B
Java
18 lines
540 B
Java
/*
|
|
* Copyright (C) 2021 Anton Romanov - All Rights Reserved
|
|
* You may use, distribute and modify this code, please write to: romanov73@gmail.com.
|
|
*
|
|
*/
|
|
|
|
package ru.ulstu.datamodel.response;
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
public class ResponseExtended<E> extends ResponseEntity<Object> {
|
|
|
|
public ResponseExtended(ErrorConstants error, E errorData) {
|
|
super(new ControllerResponse<Void, E>(new ControllerResponseError<E>(error, errorData)), HttpStatus.OK);
|
|
}
|
|
}
|