TA 역할 Spring 경계 smoke (role-ta-live-1522-001)
This commit is contained in:
parent
db3560a819
commit
a596e750eb
1 changed files with 14 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
package com.runtimematrix.controller.dto;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
/** RFC 7807 Problem Details 형식의 오류 응답 DTO */
|
||||
public record ErrorResponse(
|
||||
String type, String title, int status, String detail,
|
||||
String instance, String timestamp, String traceId
|
||||
) {
|
||||
public static ErrorResponse of(String type, String title, String detail,
|
||||
int status, String instance, String traceId) {
|
||||
return new ErrorResponse(type, title, status, detail, instance, Instant.now().toString(), traceId);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue