[FIX] correct the size of ErrorRespose and remove needed of UUID
This commit is contained in:
parent
7059e687db
commit
c843d7a64b
@ -5,21 +5,25 @@ import java.util.UUID;
|
||||
|
||||
import org.kar.archidata.tools.UuidUtils;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.ws.rs.core.Response;
|
||||
|
||||
public class RestErrorResponse {
|
||||
@NotNull
|
||||
public UUID uuid = UuidUtils.nextUUID();
|
||||
@NotNull
|
||||
@Column(length = 0)
|
||||
public String name; // Mandatory for TS generic error
|
||||
@NotNull
|
||||
@Column(length = 0)
|
||||
public String message; // Mandatory for TS generic error
|
||||
@NotNull
|
||||
@Column(length = 0)
|
||||
public String time;
|
||||
@NotNull
|
||||
final public int status;
|
||||
@NotNull
|
||||
@Column(length = 0)
|
||||
final public String statusMessage;
|
||||
|
||||
public RestErrorResponse(final Response.Status status, final String time, final String error,
|
||||
|
Loading…
x
Reference in New Issue
Block a user