[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 org.kar.archidata.tools.UuidUtils;
|
||||||
|
|
||||||
|
import jakarta.persistence.Column;
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import jakarta.ws.rs.core.Response;
|
import jakarta.ws.rs.core.Response;
|
||||||
|
|
||||||
public class RestErrorResponse {
|
public class RestErrorResponse {
|
||||||
@NotNull
|
|
||||||
public UUID uuid = UuidUtils.nextUUID();
|
public UUID uuid = UuidUtils.nextUUID();
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Column(length = 0)
|
||||||
public String name; // Mandatory for TS generic error
|
public String name; // Mandatory for TS generic error
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Column(length = 0)
|
||||||
public String message; // Mandatory for TS generic error
|
public String message; // Mandatory for TS generic error
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Column(length = 0)
|
||||||
public String time;
|
public String time;
|
||||||
@NotNull
|
@NotNull
|
||||||
final public int status;
|
final public int status;
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@Column(length = 0)
|
||||||
final public String statusMessage;
|
final public String statusMessage;
|
||||||
|
|
||||||
public RestErrorResponse(final Response.Status status, final String time, final String error,
|
public RestErrorResponse(final Response.Status status, final String time, final String error,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user