Class ErrorResponse
java.lang.Object
com.helixframework.api.contract.HateoasResponse
com.helixframework.api.contract.error.ErrorResponse
Standard error response.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilds instances ofErrorResponse.static classDebug information.static classSub-level error. -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorResponse.Builderbuilder()Create a newErrorResponse.Builder.static ErrorResponse.BuilderCreate a newErrorResponse.Builder.getCode()getDebug()getId()booleanbooleanbooleanisDebug()toString()
-
Method Details
-
builder
Create a newErrorResponse.Builder.- Returns:
- builder
-
builder
Create a newErrorResponse.Builder.- Parameters:
throwable- error to use when pre-populating builder fields- Returns:
- builder
-
getId
-
getCode
-
getStatus
-
getTimestamp
-
getMessage
-
getSubErrors
-
getAttributes
-
getDebug
-
hasSubErrors
public boolean hasSubErrors() -
hasAttributes
public boolean hasAttributes() -
isDebug
public boolean isDebug() -
toString
-