Constructor and Description |
---|
ProblemDetails() |
Modifier and Type | Method and Description |
---|---|
static ProblemDetails |
create(int statusCode,
Map<String,String> headers)
Create a minimal
ProblemDetails using HTTP response information. |
String |
getDetail()
Returns a human-readable explanation specific to this occurrence of the problem.
|
Integer |
getErrorCode()
Returns the error code.
|
String |
getErrorSource()
Returns the error source.
|
Map<String,Object> |
getExtensions()
Returns the extension members.
|
String |
getInstance()
Returns a URI reference that identifies the specific occurrence of the problem.
|
String |
getOperationId()
Returns the operation id.
|
Integer |
getStatus()
Returns the HTTP status code.
|
String |
getTitle()
Returns a short, human-readable summary of the problem type.
|
String |
getTraceId()
Returns the trace id.
|
String |
getType()
Returns the problem type.
|
void |
setDetail(String detail)
Sets a human-readable explanation specific to this occurrence of the problem.
|
void |
setErrorCode(Integer errorCode)
Sets the error code.
|
void |
setErrorSource(String errorSource)
Sets the error source.
|
void |
setExtensions(Map<String,Object> extensions)
Sets the extension members.
|
void |
setInstance(String instance)
Sets a URI reference that identifies the specific occurrence of the problem.
|
void |
setOperationId(String operationId)
Sets the operation id.
|
void |
setStatus(Integer status)
Sets the HTTP status code.
|
void |
setTitle(String title)
Sets a short, human-readable summary of the problem type.
|
void |
setTraceId(String traceId)
Sets the trace id.
|
void |
setType(String type)
Sets the problem type.
|
public String getType()
public void setType(String type)
public String getTitle()
public void setTitle(String title)
public Integer getStatus()
public void setStatus(Integer status)
public String getDetail()
public void setDetail(String detail)
public String getInstance()
public void setInstance(String instance)
public String getOperationId()
public void setOperationId(String operationId)
public String getErrorSource()
public void setErrorSource(String errorSource)
public Integer getErrorCode()
public void setErrorCode(Integer errorCode)
public String getTraceId()
public void setTraceId(String traceId)
public static ProblemDetails create(int statusCode, Map<String,String> headers)
ProblemDetails
using HTTP response information.statusCode
- The response status code.headers
- The response headers.ProblemDetails
Copyright © 2024. All rights reserved.