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