code: public static RuntimeException translateClientException(final ClientException cex) {
  
  		switch (cex.code()) {
  
  			case "Neo.ClientError.Schema.ConstraintValidationFailed":
  				throw new ConstraintViolationException(cex, cex.code(), cex.getMessage());
  
  			// add handlers / translated exceptions for ClientExceptions here..
  		}
  
  		// wrap exception if no other cause could be found
  		throw new UnknownClientException(cex, cex.code(), cex.getMessage());
  	}
docs: ----- public static methods -----