Class RuleViolationError
- java.lang.Object
-
- io.apicurio.registry.rest.v2.beans.Error
-
- io.apicurio.registry.rest.v2.beans.RuleViolationError
-
public class RuleViolationError extends Error
Root Type for ErrorAll error responses, whether `4xx` or `5xx` will include one of these as the response body.
-
-
Constructor Summary
Constructors Constructor Description RuleViolationError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RuleViolationCause>getCauses()List of rule violation causes.StringgetDetail()Full details about the error.IntegergetErrorCode()The server-side error code.StringgetMessage()The short error message.StringgetName()The error name - typically the classname of the exception thrown by the server.voidsetCauses(List<RuleViolationCause> causes)List of rule violation causes.voidsetDetail(String detail)Full details about the error.voidsetErrorCode(Integer errorCode)The server-side error code.voidsetMessage(String message)The short error message.voidsetName(String name)The error name - typically the classname of the exception thrown by the server.
-
-
-
Method Detail
-
getCauses
public List<RuleViolationCause> getCauses()
List of rule violation causes. (Required)
-
setCauses
public void setCauses(List<RuleViolationCause> causes)
List of rule violation causes. (Required)
-
getMessage
public String getMessage()
The short error message.- Overrides:
getMessagein classError
-
setMessage
public void setMessage(String message)
The short error message.- Overrides:
setMessagein classError
-
getErrorCode
public Integer getErrorCode()
The server-side error code.- Overrides:
getErrorCodein classError
-
setErrorCode
public void setErrorCode(Integer errorCode)
The server-side error code.- Overrides:
setErrorCodein classError
-
getDetail
public String getDetail()
Full details about the error. This might contain a server stack trace, for example.
-
setDetail
public void setDetail(String detail)
Full details about the error. This might contain a server stack trace, for example.
-
getName
public String getName()
The error name - typically the classname of the exception thrown by the server.
-
-