code: func (p *PassthruChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response {
  	function, _ := stub.GetFunctionAndParameters()
  	if strings.Index(function, "error") >= 0 {
  		return shim.Error(function)
  	}
  	return shim.Success([]byte(function))
  }
docs: //Init func will return error if function has string "error" anywhere