Class ApiErrorDetail
- java.lang.Object
-
- org.eclipse.dataspaceconnector.spi.ApiErrorDetail
-
public class ApiErrorDetail extends java.lang.ObjectDefine the structure for an API error to be returned to the client
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApiErrorDetail.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInvalidValue()The value of the field that caused the error.java.lang.StringgetMessage()A description message about the errorjava.lang.StringgetPath()The path of the field that caused the error.java.lang.StringgetType()The type of the error occurred
-
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
A description message about the error- Returns:
- the message
-
getType
public java.lang.String getType()
The type of the error occurred- Returns:
- the type
-
getPath
public java.lang.String getPath()
The path of the field that caused the error. This value can be null if the error it's not field-specific- Returns:
- the path
-
getInvalidValue
public java.lang.String getInvalidValue()
The value of the field that caused the error. This value can be null if the error it's not field-specific- Returns:
- the invalid value
-
-