Package ai.chalk.exceptions
Class ServerError
java.lang.Object
ai.chalk.exceptions.ServerError
ServerError is an error that occurred in Chalk's server,
for example, when a resolver unexpectedly fails to run.
-
Constructor Summary
ConstructorsConstructorDescriptionServerError(ErrorCode code, ErrorCodeCategory category, String message, ResolverException exception, String feature, String resolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe category of the error, given in the type field for the error codes.getCode()The type of the error.The exception that caused the failure, if applicable.The fully qualified name of the failing feature, e.g.A readable description of the error message.The fully qualified name of the failing resolver, e.g.inthashCode()voidsetCategory(ErrorCodeCategory category) The category of the error, given in the type field for the error codes.voidThe type of the error.voidsetException(ResolverException exception) The exception that caused the failure, if applicable.voidsetFeature(String feature) The fully qualified name of the failing feature, e.g.voidsetMessage(String message) A readable description of the error message.voidsetResolver(String resolver) The fully qualified name of the failing resolver, e.g.toString()
-
Constructor Details
-
ServerError
public ServerError() -
ServerError
public ServerError(ErrorCode code, ErrorCodeCategory category, String message, ResolverException exception, String feature, String resolver)
-
-
Method Details
-
getCode
The type of the error. -
getCategory
The category of the error, given in the type field for the error codes. This will be one of "REQUEST", "NETWORK", and "FIELD". -
getMessage
A readable description of the error message. -
getException
The exception that caused the failure, if applicable. -
getFeature
The fully qualified name of the failing feature, e.g. `user.identity.has_voip_phone`. -
getResolver
The fully qualified name of the failing resolver, e.g. `my.project.get_fraud_score`. -
setCode
The type of the error. -
setCategory
The category of the error, given in the type field for the error codes. This will be one of "REQUEST", "NETWORK", and "FIELD". -
setMessage
A readable description of the error message. -
setException
The exception that caused the failure, if applicable. -
setFeature
The fully qualified name of the failing feature, e.g. `user.identity.has_voip_phone`. -
setResolver
The fully qualified name of the failing resolver, e.g. `my.project.get_fraud_score`. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-